ts_c | R Documentation |
Collect time series as multiple time series.
ts_c(...)
... |
ts-boxable time series, an object of class |
In data frame objects, multiple time series are stored in a long data frame.
In ts
and xts
objects, time series are combined horizontally.
a ts-boxable object of the same class as the input, i.e., an object
of class ts
, xts
, zoo
, zooreg
, data.frame
, data.table
, tbl
,
tbl_ts
, tbl_time
, tis
, irts
or timeSeries
.
If series of different classes are combined, the class of the first series
is used (if possible).
ts_bind, to bind multiple time series to a single series.
ts_c(mdeaths, fdeaths)
ts_c(ts_df(EuStockMarkets), AirPassengers)
# labeling
x1 <- ts_c(
`International Airline Passengers` = ts_xts(AirPassengers),
`Deaths from Lung Diseases` = ldeaths
)
head(x1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.