FetchOneTimeSeries {MacrobondAPI}R Documentation

Download a time series

Description

Download a time series.

Usage

FetchOneTimeSeries(seriesName)

Arguments

seriesName

The name of the series.

Value

Returns an TimeSeries object.

Note

If you want to download more than one series, it is more efficient to use FetchTimeSeries.

See Also

TimeSeries FetchTimeSeries

Examples

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)

[Package MacrobondAPI version 1.1-5 Index]