TimeSeriesToLowerFrequencyMethod {MacrobondAPI} | R Documentation |
A list of named values that determines the method for converting a series to a lower frequency.
The list contains named objects of type TimeSeriesToLowerFrequencyMethodClass
.
The conversion method for converting to a lower frequency is used when making a unified series request and is a property of SeriesExpression
.
Determine the method based on the series classification
Use the time periods that are available in all series.
Use the first value of the time period
Aggregate the values of the time period
Aggregate the percentage change over the period
Use the highest value in the time period
Use the lowest value of the time period
Use the average value of the period
SeriesExpression
,
setToLowerFrequencyMethod
,
getToLowerFrequencyMethod
# 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]]