rbind_ts: Rbind original and predicted time-series-like instances as...

Description Usage Arguments Value Examples

View source: R/tslib.R

Description

Rbind original and predicted time-series-like instances as fortified data.frame

Usage

1
2
rbind_ts(data, original, ts.connect = TRUE, index.name = "Index",
  data.name = "Data")

Arguments

data

Predicted/forecasted ts instance

original

Original ts instance

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.

Value

data.frame

Examples

1
2
predicted <- predict(stats::HoltWinters(UKgas), n.ahead = 5, prediction.interval = TRUE)
rbind_ts(predicted, UKgas, ts.connect = TRUE)

sinhrks/ggfortify documentation built on May 26, 2018, 6:24 p.m.