View source: R/interpolate_missing.R
interpolate_missing | R Documentation |
The function interpolate_missing()
is a wrapper
for forecast::na.interp()
, working with numeric vectors. For
non-seasonal time series, linear interpolation is used and for
seasonal time series, the series is decomposed via STL and the
seasonally adjusted series is linearly interpolated and the seasonal
component is added back.
interpolate_missing(x, periods, ...)
x |
Numeric vector. |
periods |
Numeric vector. The seasonal periods of the time series. |
... |
Further arguments passed to |
Numeric vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.