View source: R/get_macro_economic_data.R
get_macro_economic_data | R Documentation |
This function downloads a set of ten macroeconomic variables via API from the World Development Indicators (WDI) of the World Bank (https://databank.worldbank.org/source/world-development-indicators). The variables are suspected to have a predictive capacity for the load data.
get_macro_economic_data(longterm_data)
longterm_data |
The long-term data series resulting from the function |
Data frame with the original time series and 10 additional columns with macroeconomic indicators.
See function decompose_load_data
for the generation of the long-term series and long_term_lm
for the selection of covariates.
example_longterm_and_macro_data <- get_macro_economic_data(example_longterm_data)
print("Macro economic variables are added from the World Bank Developer Indicators:")
example_longterm_and_macro_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.