TimeSeriesToLowerFrequencyMethod {MacrobondAPI}R Documentation

To lower frequency methods

Description

A list of named values that determines the method for converting a series to a lower frequency.

Format

The list contains named objects of type TimeSeriesToLowerFrequencyMethodClass.

Details

The conversion method for converting to a lower frequency is used when making a unified series request and is a property of SeriesExpression.

Auto

Determine the method based on the series classification

Last

Use the time periods that are available in all series.

First

Use the first value of the time period

Flow

Aggregate the values of the time period

PercentageChange

Aggregate the percentage change over the period

Highest

Use the highest value in the time period

Lowest

Use the lowest value of the time period

Average

Use the average value of the period

See Also

SeriesExpression, setToLowerFrequencyMethod, getToLowerFrequencyMethod

Examples

# Convert the monthly series "uscpi" to quarterly frequency using the average value of the period
seriesRequest <- CreateUnifiedTimeSeriesRequest()
setFrequency(seriesRequest, "Quarterly")
reqExp <- addSeries(seriesRequest, "uscpi")
setToLowerFrequencyMethod(reqExp, "Average")
seriesCpi <- FetchTimeSeries(seriesRequest)[[1]]

[Package MacrobondAPI version 1.1-5 Index]