ph_get_wpp2019_pop: Get Philippines population estimates or projections by 5-year...

Description Usage Arguments Value Examples

View source: R/04-ph_get_population.R

Description

Get Philippines population estimates or projections by 5-year age groups given a year or range of years from the World Population Prospects 2019

Usage

1
2
3
4
5
ph_get_wpp2019_pop(
  file,
  location = "Philippines",
  period = lubridate::year(Sys.Date())
)

Arguments

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) to get population estimates/projections for; Default to current year.

Value

A tibble in tidy format containing population data by 5-year age groups for the entire Philippines and by region from 2015 (estimates) to 2025 (projections)

Examples

1
2
3
4
5
6
## Not run: 
link <- with(dataSources,
             link[source == "WPP" & parameter == "population"])
ph_get_wpp2019_pop(file = link)

## End(Not run)

como-ph/comoparams documentation built on July 3, 2020, 8:34 a.m.