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

Time series

See Also

na.interp, tsoutliers

Aliases
  • na.interp
Examples
# NOT RUN {
data(gold)
plot(na.interp(gold))

# }
Documentation reproduced from package forecast, version 8.1, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.