interpolate_missingReadings: Interpolate missing readings
Description
Interpolate missing readings
Usage
interpolate_missingReadings(timeseries, option = "linear", ...)
Value
Vector (vector
) or Time Series (ts
) object (dependent on given input at parameter x)
Arguments
- timeseries
Numeric Vector (vector
) or Time Series (ts
) object in which missing values shall be replaced
- option
Algorithm to be used. Accepts the following input:
"linear" - for linear interpolation using approx
"spline" - for spline interpolation using spline
"stine" - for Stineman interpolation using stinterp
- ...
Additional parameters to be passed through to approx or spline interpolation functions
Author
The implementation is adopted from the package imputeTS, function na.interpolate
(https://github.com/SteffenMoritz/imputeTS/blob/master/R/na.interpolation.R)
Details
Missing values get replaced by values of a approx, spline or stinterp interpolation.