Finds correct age interval for given age
Arguments
- age
integer age in years
- x
vector of age group break points
Examples
if (FALSE) {
find_age_group(5, c(0, 5, 10, 99)) # would result in "05-09"
find_age_group(12, c(0, 5, 15, 99)) # would result in "05-14"
find_age_group(NA, c(0, 5, 15, 99)) # would result in NA
}