FetchTimeSeries-methods {MacrobondAPI} | R Documentation |
Download one or more series from the database.
The result is a list of TimeSeries
objects in the same order as requested. The elements in the list are named with the names of the series.
signature(request = "ANY")
The name of a series or a list of series names.
signature(request = "SeriesRequest")
A list of series names or an object created by calling CreateUnifiedTimeSeriesRequest
.
FetchOneTimeSeries
CreateUnifiedTimeSeriesRequest
# Get the series for US GDP and CPI and plot the GDP series seriesUs <- FetchTimeSeries(c("usgdp", "uscpi")) plot(seriesUs$usgdp)