ts_long: Reshaping Multiple Time Series

Description Usage Arguments Value Examples

View source: R/ts_long_wide.R

Description

Functions to reshape multiple time series from 'wide' to 'long' and vice versa. Note that long format data frames are ts-boxable objects, where wide format data frames are not.

Usage

1
2
3

Arguments

x

a ts-boxable time series, or a wide data.frame, data.table, or tibble.

Value

object with the same class as input

Examples

1
2
3
df.wide <- ts_wide(ts_df(ts_c(mdeaths, fdeaths)))
head(df.wide)
head(ts_long(df.wide))

christophsax/tsbox documentation built on June 26, 2018, 1:13 p.m.