prepare_population_for_modelling: Prepare population data for generating an age population...

View source: R/get-age-population-function-internals.R

prepare_population_for_modellingR Documentation

Prepare population data for generating an age population function

Description

Prepares objects for use in get_age_population_function().

Usage

prepare_population_for_modelling(data, ...)

## S3 method for class 'conmat_population'
prepare_population_for_modelling(data, ...)

## S3 method for class 'data.frame'
prepare_population_for_modelling(
  data = data,
  age_col = age_col,
  pop_col = pop_col,
  ...
)

Arguments

data

data.frame

...

extra arguments

age_col

column of ages

pop_col

column of population,

Value

list of objects, max_bound pop_model_bounded bounded_pop unbounded_pop for use in get_age_population_function()

Author(s)

njtierney

Examples

prepare_population_for_modelling(get_polymod_population())


njtierney/conmat documentation built on April 17, 2025, 10:27 p.m.