powered by
Uses linear interpolation for non-seasonal series and a periodic stl decomposition with seasonal series to replace missing values.
na.interp(x, lambda = NULL)
time series
a numeric value suggesting Box-cox transformation
Time series
A more general and flexible approach is available using na.approx in the zoo package.
na.approx
zoo
na.interp, tsoutliers
na.interp
tsoutliers
# NOT RUN { data(gold) plot(na.interp(gold)) # }
Run the code above in your browser using DataLab