TimeSeriesToHigherFrequencyMethod {MacrobondAPI} | R Documentation |
A list of named values that determines the method for converting a series to a higher frequency.
The list contains named objects of type TimeSeriesToHigherFrequencyMethodClass
.
The conversion method for converting to a higher 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 same value for the whole period
Use the first value of the time period
Distribute the percentage change over the period
Use a linear interpolation of the values from this to the next period
Use the value for the first value of the period
Use quadratic interpolation to distribute the value over the period
Use a cubic interpolation of the values from this to the next period
SeriesExpression
,
setToHigherFrequencyMethod
,
getToHigherFrequencyMethod
# Convert the quarterly series "usgdp" to monthly frequency using linear interpolation seriesRequest <- CreateUnifiedTimeSeriesRequest() setFrequency(seriesRequest, "Monthly") reqExp <- addSeries(seriesRequest, "usgdp") setToHigherFrequencyMethod(reqExp, "LinearInterpolation") seriesGdp <- FetchTimeSeries(seriesRequest)[[1]]