as.xts.TimeSeries {MacrobondAPI}R Documentation

Create an xts object from a Macrobond timeseries

Description

Create an xts object from a Macrobond timeseries.

Usage

## S3 method for class 'TimeSeries'
as.xts(x, ...)

Arguments

x

An object of type TimeSeries-class to convert.

...

Additional arguments passed to xts.

Value

An xts object from the xts package.

See Also

MakeXtsFromUnifiedResponse, TimeSeries, xts

Examples

seriesGdp <- FetchOneTimeSeries("usgdp")
seriesGdp.xts <- as.xts(seriesGdp)

[Package MacrobondAPI version 1.1-5 Index]