TimeSeriesPartialPeriodsMethod {MacrobondAPI} | R Documentation |
A list of named values that determines the method for converting partial periods of a series to a lower frequency.
The list contains named objects of type TimeSeriesPartialPeriodsMethodClass
.
The conversion method is used when making a unified series request and is a property of SeriesExpression
.
Only include full periods of the lower frequency
Automatically select method based on series properties
Use the last (or first) value to extend incomplete periods
Use the last (or first) partial average to extend incomplete periods
Use the previous (or next) year's rate of change to extend incomplete periods
Extend incomplete periods with zeroes
SeriesExpression
,
setPartialPeriodsMethod
,
getPartialPeriodsMethod
# Convert the monthly series "uscpi" to quarterly frequency and fill in partial quarters at the start and end by repeating the closest value seriesRequest <- CreateUnifiedTimeSeriesRequest() setFrequency(seriesRequest, "Quarterly") reqExp <- addSeries(seriesRequest, "uscpi") setPartialPeriodsMethod(reqExp, "RepeatLastValue") seriesCpi <- FetchTimeSeries(seriesRequest)[[1]]