Skip to contents

[Deprecated]

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_column and pop_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 pop indicating the lower age group limit

pop_column

column in pop indicating the population size

...

ignored

age.limits, pop.age.column, pop.column

[Deprecated] Use the underscore versions (e.g., age_limits) instead.

Value

data frame of age-specific population data