if (FALSE) { # interactive()
# Default: data from 2000 to current date (but limited to 2014)
df <- get_gdp_growth()
# Specific period (within available range)
df2 <- get_gdp_growth("2010", "2014")
# Using year-month format
df3 <- get_gdp_growth("2012-06", "2013-12")
# End date only (from earliest available to 2020-12-31)
df4 <- get_gdp_growth(end_date = "2020-12-01")
# Portuguese column names and labels
df5 <- get_gdp_growth(language = "pt")
# Complete example with all parameters
df6 <- get_gdp_growth("2011-01-01", "2014-12-31", language = "pt", labels = TRUE)
}
Run the code above in your browser using DataLab