wpp.by.country: Selection by Country and Year

View source: R/wpp.R

wpp.by.countryR Documentation

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

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

PPgp/wppExplorer documentation built on July 15, 2022, 6:40 a.m.