na.interp

0th

Percentile

Interpolate missing values in a time series

Uses linear interpolation for non-seasonal series and a periodic stl decomposition with seasonal series to replace missing values.

Keywords
ts
Usage
na.interp(x, lambda = NULL)
Arguments
x
time series
lambda
a numeric value suggesting Box-cox transformation
Details

A more general and flexible approach is available using na.approx in the zoo package.

Value

See Also

na.interp, tsoutliers

Aliases
  • na.interp
Examples
data(gold)
plot(na.interp(gold))
Documentation reproduced from package forecast, version 7.3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.