View source: R/data-population.R
interpolate_population_agesex | R Documentation |
Log-linear interpolation of age/sex stratified population
interpolate_population_agesex(population_agesex, calendar_quarters)
population_agesex |
a subset of the population_agesex. |
calendar_quarters |
vector of calendar quarters to return interpolation. |
zoo::na.approx()
is used to interpolate log(population).
A data.frame with same columns as pop_agesex interpolated to times
.
convert_quarter_id()
## Interpolate Malawi population at level 2 (Zone) at two time points
data(demo_population_agesex)
calendar_quarters <- c("CY2016Q1", "CY2018Q3")
pop_interp <- interpolate_population_agesex(demo_population_agesex, calendar_quarters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.