rbind_ts | R Documentation |
data.frame
Rbind original and predicted time-series-like instances as fortified data.frame
rbind_ts(
data,
original,
ts.connect = TRUE,
index.name = "Index",
data.name = "Data"
)
data |
Predicted/forecasted |
original |
Original |
ts.connect |
Logical frag indicates whether connects original time-series and predicted values |
index.name |
Specify column name for time series index |
data.name |
Specify column name for univariate time series data. Ignored in multivariate time series. |
data.frame
## Not run:
predicted <- predict(stats::HoltWinters(UKgas), n.ahead = 5, prediction.interval = TRUE)
rbind_ts(predicted, UKgas, ts.connect = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.