powered by
Mostly used for plot labelling
limits_to_agegroups(x, limits = sort(unique(x)))
Age groups (limits separated by dashes)
age limits to transform
lower age limits; if not given, will use all limits in x
x
limits_to_agegroups(c(0, 5, 10))
Run the code above in your browser using DataLab