time_rename {dbnR}R Documentation

Renames the columns in a data.table so that they end in '_t_0'

Description

This will rename the columns in a data.table so that they end in '_t_0', which will be needed when folding the data.table. If any of the columns already ends in '_t_0', a warning will be issued and no further operation will be done. There is no need to use this function to learn a DBN unless some operation with the variable names wants to be done prior to folding a dataset.

Usage

time_rename(dt)

Arguments

dt

the data.table to be treated

Value

the renamed data.table

Examples

data("motor")
dt <- time_rename(motor)

[Package dbnR version 0.7.8 Index]