R/age_helpers.R
age_labels.Rd
Provides sortable labels for age groups
age_labels(age_cuts)
(numeric()) The lower bound of the groups (0 is implicitly included).
numeric()
A vector of labels with zero-padded numerics so they can be sorted easily.
age_labels(c(5, 12, 20, 30)) #> [1] "00-04" "05-11" "12-19" "20-29" "30+"