-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathrbind_ts.Rd
37 lines (33 loc) · 992 Bytes
/
rbind_ts.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tslib.R
\name{rbind_ts}
\alias{rbind_ts}
\title{Rbind original and predicted time-series-like instances as fortified \code{data.frame}}
\usage{
rbind_ts(
data,
original,
ts.connect = TRUE,
index.name = "Index",
data.name = "Data"
)
}
\arguments{
\item{data}{Predicted/forecasted \code{ts} instance}
\item{original}{Original \code{ts} instance}
\item{ts.connect}{Logical frag indicates whether connects original time-series and predicted values}
\item{index.name}{Specify column name for time series index}
\item{data.name}{Specify column name for univariate time series data. Ignored in multivariate time series.}
}
\value{
data.frame
}
\description{
Rbind original and predicted time-series-like instances as fortified \code{data.frame}
}
\examples{
\dontrun{
predicted <- predict(stats::HoltWinters(UKgas), n.ahead = 5, prediction.interval = TRUE)
rbind_ts(predicted, UKgas, ts.connect = TRUE)
}
}