View source: R/dt_modification.R
fold_dt_rec | R Documentation |
This 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. Recursive version not exported, the user calls from the handler 'fold_dt'
fold_dt_rec(dt, n_prev, size, slice = 1)
dt |
the data.table to be treated |
n_prev |
names of the previous time slice |
size |
number of time slices to unroll. Markovian 1 would be size 2 |
slice |
the current time slice being treated. Should not be modified when first calling. |
the extended data.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.