Learn R Programming

dbnR (version 0.7.1)

time_rename: 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.

Usage

time_rename(dt)

Arguments

dt

the data.table to be treated

Value

the renamed data.table

Examples

Run this code
# NOT RUN {
data("motor")
dt <- time_rename(motor)
# }

Run the code above in your browser using DataLab