Learn R Programming

dbnR (version 0.7.1)

fold_dt: Widens the dataset to take into account the t previous time slices

Description

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.

Usage

fold_dt(dt, size)

Arguments

dt

the data.table to be treated

size

number of time slices to unroll. Markovian 1 would be size 2

Value

the extended data.table

Examples

Run this code
# NOT RUN {
data(motor)
size <-  3
dt <- fold_dt(motor, size)
# }

Run the code above in your browser using DataLab