# \donttest{
# Return monthly macroeconomic indicators from the year 2000 onwards
get_data("BOU_MMI", from = 2000, wide = FALSE)
# Return wide format with date expanded
get_data("BOU_MMI", from = 2000, expand.date = TRUE)
# Same thing in multiple steps (with additional customization options):
library(magrittr) # Pipe %>% operators
get_data("BOU_MMI", from = 2000, wide = FALSE) %>% long2wide %>% expand_date
# Getting a single series
get_data("BOU_MMI", "M2", 2000)
# Getting High-Frequency activity indicators from BoU and Revenue & Expense from MoFPED
get_data(c("BOU_MMI", "MOF_TOT", "WB_WDI"), c("CIEA", "BTI", "REV_GRA", "EXP_LEN"))
# Getting daily interest rates and plotting
library(xts) # Time series class
get_data("BOU_I", from = 2018, wide = FALSE) %>%
long2wide(names_from = "Label") %>%
as.xts %>%
plot(legend.loc = "topleft")
# }
Run the code above in your browser using DataLab