interpolate.model_mean | R Documentation |
Applies a model-specific estimation technique to predict the values of missing values in a tsibble
, and replace them.
## S3 method for class 'model_mean' interpolate(object, new_data, specials, ...)
object |
The time series model used to produce the forecasts |
new_data |
A |
specials |
(passed by |
... |
Additional arguments for forecast model methods. |
A tibble of the same dimension of new_data
with missing values interpolated.
library(tsibbledata) olympic_running %>% model(mean = MEAN(Time)) %>% interpolate(olympic_running)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.