Description Usage Arguments Value Examples
Downloads requested data from the OECD's API, parses the download, and returns the data in country-time format
1 2 3 |
country |
character vector of country names in ISO 3 country code
format. The default ( |
table |
character string identifying the table. Note only one table can be queried at a time. |
indicator |
character vector of indicator codes for variables in
|
start |
first year or quarter to download data for. |
end |
final year or quarter to download data for. |
extra |
logical. If |
return_url |
logical. Whether or not to return the URL constructed for the query. Can be useful for debugging your query. |
a data frame with (if extra = TRUE
) country ISO 3 Letter
codes, the time variable and the requested indicators.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# Download: Central Governement Currency and Deposits (% GDP) and
# Total Gross Central Government Debt in current prices
qrt_public_debt <- oecd(indicator = c('SAF2LXT.S1311C.PCTGDPA.NSA',
'SAFGD.S1311C.CAR.NSA'))
# Gross domestic product (expenditure approach current prices, millions)
gdp <- oecd(table = 'SNA_TABLE1', indicator = 'B1_GE.CPC',
start = 2000, end = 2012)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.