Fill NA or specified positions.
na.StructTS.RdGeneric function for filling NA values using seasonal Kalman filter.
Usage
na.StructTS(object, ...)
# S3 method for class 'ts'
na.StructTS(object, ..., na.rm = FALSE, maxgap = Inf)
# S3 method for class 'zoo'
na.StructTS(object, ..., na.rm = FALSE, maxgap = Inf)Arguments
- object
an object.
- ...
other arguments passed to methods.
- na.rm
logical. Whether to remove end portions or fill them with NA.
- maxgap
Runs of more than
maxgapNAs are retained, otherNAs are removed and the last occurrence in the resulting series prior to each time point inxoutis used as that time point's output value.
