CalendarDateMode {MacrobondAPI}R Documentation

Calendar date mode enum values

Description

A list of enum values that determines how to treat start and end dates when downloading a set of timeseries

Format

The list contains named objects of type CalendarDateModeClass.

Details

The calendar date mode is specified when making a unified series request and is used for the stat and end dates properties of SeriesRequest.

DataInAnySeries

Use the first or last time period where there is valid data in any series.

DataInAllSeries

Use the first or last time period where there is valid data in all series.

See Also

SeriesRequest setEndDateMode, getEndDateMode, setStartDateMode, getStartDateMode, getStartDateMode,

Examples

seriesRequest <- CreateUnifiedTimeSeriesRequest()
setStartDateMode(seriesRequest, CalendarDateMode[["DataInAllSeries"]])	# Set the start to the first point where data is available in all series
addSeries(seriesRequest, "usgdp")
addSeries(seriesRequest, "uscpi")
twoSeries <- FetchTimeSeries(seriesRequest)

[Package MacrobondAPI version 1.1-5 Index]