powered by
Collect time series as multiple time series.
ts_c(...)
a ts-boxable object of the same class as the input. If series of different classes are combined, the class of the first series is used (if possible).
ts-boxable time series, an object of class ts, xts, zoo, data.frame, data.table, tbl, tbl_ts, tbl_time, tis, irts or timeSeries.
ts
xts
zoo
data.frame
data.table
tbl
tbl_ts
tbl_time
tis
irts
timeSeries
In data frame objects, multiple time series are stored in a long data frame. In ts and xts objects, time series are combined horizontally.
ts_bind, to bind multiple time series to a single series.
head(ts_c(ts_df(EuStockMarkets), AirPassengers)) # labeling x <- ts_c( `International Airline Passengers` = ts_xts(AirPassengers), `Deaths from Lung Diseases` = ldeaths ) head(x)
Run the code above in your browser using DataLab