FetchFertilityWpp2019 | R Documentation |
Retrieve age-specific fertility rates for available WPP 2019 locations
FetchFertilityWpp2019(locations = NULL, year)
locations |
list of locations by name or code according to WPP 2019 location list (check fertestr::locs_avail() for list of available locations) |
year |
desired reference year to fetch fertility information (numeric) |
data.frame with five columns: 'location_code': WPP 2019 location code 'location_name': WPP 2019 location name 'age': women ages in five-year age groups from 10 to 45; 'asfr': interpolated age-specific fertility rates for desired year 'asfr_std': proportional age-specific fertility rates for desired year (sum(asfr_std*5) = 1)
# Fertility pattern for Taiwan 2007
FetchFertilityWpp2019( locations = 158, year = 2007 )
# Fertility pattern for Peru and Paraguay 1994
FetchFertilityWpp2019( locations = c( 604, 600 ), year = 1994 )
# Fertility pattern for Italy and Australia 2002 (using names)
FetchFertilityWpp2019( locations = c( 'Italy', 'Australia'), year = 2002)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.