View source: R/extract_DemoData_tier1_post_process.R
DDextract_get_pop_count_age_sex_reference | R Documentation |
Extracts and (optionally) subsets reference population data from a
list of the kind returned by
DDextract_ccmppWPPinputs_tier1
. The result is
returned as a demog_change_component_df
object.
DDextract_get_pop_count_age_sex_reference( x, times = c("all", "excl_baseline", "census", "census_excl_baseline") )
x |
A list of the form returned by
|
times |
Either a numeric vector containing years for which
reference population counts should be extracted from |
... |
Passed to other methods. |
An object of class demog_change_component_df
containing the reference population counts.
Census times cannot be determined by default because the object
returned by DDextract_ccmppWPPinputs_tier1
does not
record the location to which the data pertain. Use
get_census_years
to separately look up census years.
Mark Wheldon
data("france_wpp_1950_2020_population_data") data("census_years") all_years <- DDextract_get_pop_count_age_sex_reference(france_wpp_1950_2020_population_data) census_years_only <- DDextract_get_pop_count_age_sex_reference(france_wpp_1950_2020_population_data, times = "census") selected_years <- DDextract_get_pop_count_age_sex_reference(france_wpp_1950_2020_population_data, times = 1950:1955)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.