pop_age() is deprecated. To rebin a population table to explicit age
limits, use rebin_ages(). To align a population table to a contact
matrix's age groups, use align_ages().
Usage
pop_age(
pop,
age_limits = NULL,
pop_age_column = "lower.age.limit",
pop_column = "population",
...,
age.limits = deprecated(),
pop.age.column = deprecated(),
pop.column = deprecated()
)Arguments
- pop
a data frame with lower-age-limit and population columns (see
pop_age_columnandpop_column)- age_limits
lower age limits of age groups to extract; if
NULL(default), the population data is returned unchanged- pop_age_column
column in
popindicating the lower age group limit- pop_column
column in
popindicating the population size- ...
ignored
- age.limits, pop.age.column, pop.column