format_age: Convert age-group population sizes to population proportions

Description Usage Arguments Note

View source: R/databases.R

Description

Takes population counts by age group and returns the population proportions for single-year age groups

Usage

1
2
format_age(age_data, gsize = 5, minAge = 20, maxAge = 85,
  format = FALSE)

Arguments

age_data

Population age structure data frame OR file

gsize

Number of years covered by each age group

minAge

Optional lower age limit for the population

maxAge

Optional upper age limit for the population

format

Does the input need to be formatted? If so, age_data can be a .csv file

Note

See bcimodel/data-raw/agestructure.R


cancerpolicy/bcimodel documentation built on Feb. 13, 2018, 2:06 p.m.