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

na.interp(x, lambda = NULL)

## Arguments

x time series 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.

Time series

## Details

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

tsoutliers