Convert time-series-like to data.frame
# S3 method for class 'ts'
fortify(
model,
data = NULL,
columns = NULL,
is.date = NULL,
index.name = "Index",
data.name = "Data",
scale = FALSE,
melt = FALSE,
...
)
time-series-like instance
original dataset, if needed
character vector specifies target column name(s)
logical frag indicates whether the stats::ts
is date or not
If not provided, regard the input as date when the frequency is 4 or 12
specify column name for time series index
specify column name for univariate time series data. Ignored in multivariate time series.
logical flag indicating whether to perform scaling each timeseries
logical flag indicating whether to melt each timeseries as variable
other arguments passed to methods
data.frame