This changes population data to have age groups with the given age.limits, extrapolating linearly between age groups (if more are requested than available) and summing populations (if fewer are requested than available)
pop_age(
pop,
age.limits,
pop.age.column = "lower.age.limit",
pop.column = "population",
...
)
a data frame with columns indicating lower age limits and population sizes (see 'age.column' and 'pop.column')
lower age limits of age groups to extract
column in the 'pop' data frame indicating the lower age group limit
column in the 'pop' data frame indicating the population size
ignored
data frame of age-specific population data