Description Usage Arguments Value Author(s) Examples
This function returns the query result of a data indicator as a data frame.
1 | get.indicator(country, indicator, per_page = 100, from = 1960, to = 2014)
|
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 |
If the data is available, this function will return a data frame; otherwise, NA.
Ming-Jer Lee <mingjerli@gmail.com>
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.