CreateUnifiedTimeSeriesRequest {MacrobondAPI}R Documentation

Create a unified series request

Description

Create a request of one or more series where the resulting time series will be converted to a common length and calendar. You can specify frequency, currency, date range, missing value and frequency conversion methods. You add series to this object by calling addSeries and you then pass this object to FetchTimeSeries in order to download the series.

Usage

CreateUnifiedTimeSeriesRequest()

Value

An object of type SeriesRequest.

See Also

addSeries setFrequency setWeekdays setCurrency setCalendarMergeMode setStartDate setStartDateMode setEndDate setEndDateMode FetchTimeSeries

Examples

seriesRequest <- CreateUnifiedTimeSeriesRequest()
setFrequency(seriesRequest, TimeSeriesFrequency[["Monthly"]])
addSeries(seriesRequest, "usgdp")
seriesExpressionCpi <- addSeries(seriesRequest, "uscpi")
setMissingValueMethod(seriesExpressionCpi, TimeSeriesMissingValueMethod[["None"]])
twoSeries <- FetchTimeSeries(seriesRequest)

[Package MacrobondAPI version 1.1-5 Index]