Skip to contents

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

Usage

agegroups_to_limits(x)

Arguments

x

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

Value

a numeric vector of lower age limits

Examples

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