weo_get | R Documentation |
Retrieve data from the IMF World Economic Outlook (WEO) database for specific series, countries, and years.
weo_get(
entities = NULL,
series = NULL,
start_year = 1980L,
end_year = NULL,
year = NULL,
release = NULL,
quiet = TRUE
)
entities |
An optional character vector of ISO3 country codes or country group identifiers. See weo_get_entities. |
series |
A optional character vector of series codes. See weo_get_series. |
start_year |
Minimum year to include. Defaults to 1980. |
end_year |
Maximum year to include. Defaults to current year + 5 years. |
year |
The year of a WEO publication (e.g., 2024). Defaults to latest publication year. |
release |
The release of a WEO publication ("Spring" or "Fall"). Defaults to latest publication release. |
quiet |
A logical indicating whether to print download information. Defaults to TRUE. |
A data frame with columns:
ISO3 country code or country group ID
Entity name
WEO series code
Series name
Units of measurement
Year
Value
# Get GDP growth for selected countries
weo_get(
entities = c("USA", "GBR", "DEU"),
series = "NGDP_RPCH",
start_year = 2015,
end_year = 2020
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.