na.interp {forecast} | R Documentation |
Uses linear interpolation to replace missing values.
na.interp(x)
x |
time series |
A more general and flexible approach is available using na.approx
in the zoo
package.
Time series
Rob J Hyndman
data(gold) plot(na.interp(gold))