View source: R/dt_modification.R
fold_dt | R Documentation |
This function will widen the dataset to put the t previous time slices in each row, so that it can be used to learn temporal arcs in the second phase of the dmmhc.
fold_dt(dt, size)
dt |
the data.table to be treated |
size |
number of time slices to unroll. Markovian 1 would be size 2 |
the extended data.table
data(motor)
size <- 3
f_dt <- fold_dt(motor, size)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.