Learn R Programming

wppExplorer (version 1.0-3)

wpp.by.country: Selection by Country and Year

Description

Filtering indicators by given countries and year.

Usage

wpp.by.country(data, country)

wpp.by.countries(data, countries)

wpp.by.year(data, year)

Arguments

data
Data frame as returned by wpp.indicator.
country
alpha-2 ISO 3166 country code.
countries
Vector of alpha-2 ISO 3166 country codes.
year
Year. For vital rates with 5-years time period, currently it is the end year of the time period.

Value

  • A data frame filtered by the input arguments.

See Also

wpp.indicator

Examples

Run this code
tfr <- wpp.indicator("fert")
tfr.germany.2010 <- wpp.by.country(wpp.by.year(tfr, 2010), 'DE')

Run the code above in your browser using DataLab