Skip to contents

Formats income bin labels from lower and upper bounds for display and labeling.

Usage

format_income_bins(lower, upper, maxincome)

Arguments

lower

numeric. Lower bound of the income bin.

upper

numeric. Upper bound of the income bin.

maxincome

numeric. Maximum income value for top-coding.

Value

character string. Formatted income bin label.

Details

  • Converts numeric bounds to formatted strings with dollar signs and commas.

  • Handles 'Under' and 'or more' cases for lowest and highest bins.

  • Returns a character string for each bin.