| interpolate_missingReadings {SmartMeterAnalytics} | R Documentation |
Interpolate missing readings
Description
Interpolate missing readings
Usage
interpolate_missingReadings(timeseries, option = "linear", ...)
Arguments
timeseries |
Numeric Vector ( |
option |
Algorithm to be used. Accepts the following input: |
... |
Additional parameters to be passed through to approx or spline interpolation functions |
Details
Missing values get replaced by values of a approx, spline or stinterp interpolation.
Value
Vector (vector) or Time Series (ts) object (dependent on given input at parameter x)
Author(s)
The implementation is adopted from the package imputeTS, function na.interpolate (https://github.com/SteffenMoritz/imputeTS/blob/master/R/na.interpolation.R)
[Package SmartMeterAnalytics version 1.0.3 Index]