TimeSeriesMissingValueMethod {MacrobondAPI} | R Documentation |
A list of named values that determines the method for filling in missing values.
The list contains named objects of type TimeSeriesMissingValueMethodClass
.
The frequency conversion method is used when making a unified series request and is a property of SeriesExpression
.
Do not fill in missing values. They will remain NaN in the value vector.
Determine the method based on the series classification.
Use the previous non-missing value.
Use the value zero.
Do a linear interpolation between the previous and next non-missing values.
SeriesExpression
,
setMissingValueMethod
,
getMissingValueMethod
# Fill in missing values in "spx" with a linear interpolation of surrounding values seriesRequest <- CreateUnifiedTimeSeriesRequest() reqExp <- addSeries(seriesRequest, "spx") setMissingValueMethod(reqExp, "LinearInterpolation") seriesSpx <- FetchTimeSeries(seriesRequest)[[1]]