na.interp: Interpolate missing values in a time series

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/clean.R

Description

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

Usage

1
na.interp(x, lambda = NULL)

Arguments

x

time series

lambda

Box-Cox decomposition parameter. If NULL, no transformation is used. If lambda="auto", a transformation is automatically selected. If lambda takes a numerical value, it is used as the parameter of the Box-Cox transformation.

Details

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

Value

Time series

Author(s)

Rob J Hyndman

See Also

tsoutliers

Examples

1
2

a1967fa/f-cast documentation built on May 29, 2019, 12:05 a.m.