tsObj_to_dt | R Documentation |
data.table
The function tsbox::ts_df()
is incorporated to return a data.table
from
a time object of classes ts
, xts
, mts
, or zoo
. In the data.table
the series' time index
is named "time" and corresponding values as "value". If the series is a multiple time series (mts)
then an index column is created (named "id") with the names of the variables.
tsObj_to_dt(series = NULL, wide_form = FALSE)
series |
A |
wide_form |
A logical which if TRUE will reshape the data.table to wide form. |
A data.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.