Description Usage Arguments Value Examples
View source: R/data_functions.R
Download a data from the IMF
1 2 3 4 5 6 7 8 9 10 11 |
database_id |
character string database ID. Can be found using
|
indicator |
character string or character vector of indicator IDs.
These can be found using |
country |
character string or character vector of ISO two letter
country codes identifying the countries for which you would like to
download the data.See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
If |
start |
year for which you would like to start gathering the data. |
end |
year for which you would like to end gathering the data. |
freq |
character string indicating the series frequency. With
|
return_raw |
logical. Whether to return the data as an unprocessed list. |
print_url |
logical. Whether to print the URL used in the API call. Can be useful for debugging. |
times |
numeric. Maximum number of requests to attempt. |
If return_raw = FALSE
then a data frame with just the
requested data series are returned. If return_raw = TRUE
then the raw
data list is returned. This can include additional information about the
series.
1 2 3 4 5 6 7 8 9 10 11 12 | # Download Real Effective Exchange Rate (CPI base) for the UK and China
# at an annual frequency
real_ex <- imf_data(database_id = 'IFS', indicator = 'EREER_IX',
country = c('CN', 'GB'), freq = 'A')
## Not run:
# Also download Interest Rates, Lending Rate, Percent per annum
ex_interest <- imf_data(database_id = 'IFS',
indicator = c('FILR_PA', 'EREER_IX'),
freq = 'M')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.