Description Usage Arguments Value
bind_as_xts combines a time series with the output of forecast of the forecast package to create an xts object. This is a helper function that makes it easier to model data in the ts format and then plot the results in the xts format.
1 | bind_as_xts(ts, forecast)
|
ts |
A time series with class "ts" |
forecast |
An object with class "forecast" created by |
A time series with class "xts". The series will contain four columns, x (the original time series), fitted (the future predictions), lower, and upper (the lower and upper bounds of an 80 interval for the predictions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.