Internal numeric coarsener operating on lower.age.limit columns: rebins a
population table to the age groups defined by age_limits, summing when
coarser. Requesting age groups finer than the population data is deprecated:
it warns and linearly interpolates, and will error in a future release.
Wrapped by rebin_ages() (which errors on finer requests) and used by
pop_age() and contact_matrix()'s population adjustment.
rebin_ages_numeric(
pop,
age_limits = NULL,
pop_age_column = "lower.age.limit",
pop_column = "population",
...
)data frame of age-specific population data
a data frame with lower-age-limit and population columns (see
pop_age_column and pop_column)
lower age limits of age groups to extract; if NULL
(default), the population data is returned unchanged
column in pop indicating the lower age group limit
column in pop indicating the population size
ignored