interpolate_missingReadings {SmartMeterAnalytics}R Documentation

Interpolate missing readings

Description

Interpolate missing readings

Usage

interpolate_missingReadings(timeseries, option = "linear", ...)

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

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]