R/reduce_agegroups.r
reduce_agegroups.Rd
Operates on lower limits
reduce_agegroups(x, limits)
vector of limits
new limits
vector with the new age groups
reduce_agegroups(seq_len(20), c(0, 5, 10)) #> [1] 0 0 0 0 5 5 5 5 5 10 10 10 10 10 10 10 10 10 10 10