FetchOneTimeSeries {MacrobondAPI} | R Documentation |
Download a time series.
FetchOneTimeSeries(seriesName)
seriesName |
The name of the series. |
Returns an TimeSeries
object.
If you want to download more than one series, it is more efficient to use FetchTimeSeries
.
series <- FetchOneTimeSeries("usgdp") show(series) # Use the PerCapita ratio to get a series of the US GDP per capita. # There are \href{https://help.macrobond.com/tutorials-training/3-analyzing-data/ratios-in-macrobond/calculated-macrobond-ratios/}{several other ratios} available that can be applied to series where it makes sense. series <- FetchOneTimeSeries("#PerCapita(usgdp)") show(series)