get.indicator: Get the query result from a data indicator

Description Usage Arguments Value Author(s) Examples

View source: R/rWBData.R

Description

This function returns the query result of a data indicator as a data frame.

Usage

1
get.indicator(country, indicator, per_page = 100, from = 1960, to = 2014)

Arguments

country

A character represents the id or iso2code of the country

indicator

A character represents the id of the data indicator

per_page

Maximum number of observed data

from

Starting year

to

End year

Value

If the data is available, this function will return a data frame; otherwise, NA.

Author(s)

Ming-Jer Lee <mingjerli@gmail.com>

Examples

1
2
3
4
countries <- unlist(categoryList$country[,"id"])
indicators <- unlist(categoryList$indicator[,"id"])
get.indicator(countries[119], indicators[68], 10, from=2010, to=2014)
get.indicator("USA","1.2_ACCESS.ELECTRICITY.RURAL")

mingjerli/rWBData documentation built on May 22, 2019, 11:54 p.m.