Description Usage Arguments Value Examples
View source: R/04-ph_get_population.R
Get Philippines age-specific number of births estimates or projections by 5-year periods given a year or range of years from the World Population Prospects 2019
1 2 3 4 5 | ph_get_wpp2019_births(
file,
location = "Philippines",
period = lubridate::year(Sys.Date())
)
|
file |
Either a path or a URL to the World Population Prospects 2019 file containing population estimates and projections in 5-year age groups |
location |
Location to get population estimates/projections for; Default to the "Philippines" |
period |
A year (numeric) or range of years (YYYY:YYYY) in 5 year intervals starting from 1950 to get population estimates/projections for; Default is current year corresponding to the five year period that contains the current year |
A tibble in tidy format containing age-specific number of births for the entire Philippines from 1950 to 2100
1 2 3 4 5 6 | ## Not run:
link <- with(dataSources,
link[source == "WPP" & parameter == "births"])
ph_get_wpp2019_births(file = link, period = 2019)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.