| ts_interpolate | R Documentation |
Interpolation of a time series with missing values
ts_interpolate(s, method = c("airline", "average"))
s |
time series with missing values |
method |
airline: interpolation through an estimated airline model (Default) average: interpolation using the average of the previous and next non missing values |
The interpolated series
y<- rjd3toolkit::ABS$X0.2.09.10.M
y[400:410]<-NA
y1<-ts_interpolate(y)
y1[390:420]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.