View source: R/aggregate_population_estimates.R
aggregate_population_estimates | R Documentation |
Aggregate population estimates
aggregate_population_estimates(estimate, period, strata, from, to)
estimate |
Numeric. Population estimate |
period |
Integer. Numeric codes for the corresponding period. See period_cd |
strata |
Atomic. Population strata |
from |
Character. Current level. "cy", "fy", "cq", "fq", "cm", "fm" |
to |
Character. Desired level. "cy", "fy", "cq", "fq", "cm", "fm" |
A data frame
dfr <- data.frame(
ccg_cd = "E92001",
cyear = c(2021, 2011),
mid_yr_est = c(1457775, 1457783))
aggregate_population_estimates(
strata = dfr$ccg_cd,
estimate = dfr$mid_yr_est,
period = dfr$cyear,
from = "cy",
to = "cq"
)
aggregate_population_estimates(
strata = dfr$ccg_cd,
estimate = dfr$mid_yr_est,
period = dfr$cyear,
from = "cy",
to = "fq"
)
aggregate_population_estimates(
strata = dfr$ccg_cd,
estimate = dfr$mid_yr_est,
period = dfr$cyear,
from = "cy",
to = "cm"
)
aggregate_population_estimates(
strata = dfr$ccg_cd,
estimate = dfr$mid_yr_est,
period = dfr$cyear,
from = "cy",
to = "fm"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.