Single canonical table for the 23 ACS B01001 age-sex groups. Each consumer (API variable mapping, single-year age range lookup, etc.) selects only the columns it needs.

acs_age_groups()

Value

Data frame with one row per age group and columns:

age_label

Age group label (e.g., "0-4", "5-9", ..., "85+")

min_age

Minimum single-year age in the group (inclusive)

max_age

Maximum single-year age in the group (inclusive; Inf for open-ended)

male_variable

B01001 variable code for males (e.g., "B01001_003")

female_variable

B01001 variable code for females (e.g., "B01001_027")

Details

Replaces the old get_b01001_mapping(). The 23 group labels appear in exactly one place.