Skip to contents

Inverse of limits_to_age_groups(). Extracts lower age limits from age group labels.

Usage

age_groups_to_limits(x)

Arguments

x

age groups (a factor, as produced by limits_to_age_groups() or assign_age_groups())

Value

a numeric vector of lower age limits

Examples

age_groups_to_limits(
  limits_to_age_groups(c(0, 5, 10), notation = "brackets")
)
#> [1]  0  5 10