setnames.dtb: Conveniently set column names of a data.table.

Description Usage Arguments Value

View source: R/utils4.data.table.R

Description

Convenience wrapper around setnames function.

Usage

1
setnames.dtb(dtb, rename.map)

Arguments

dtb

data.table object

rename.map

– named array of the form c('new1=old1',...)

Value

The input is modified by reference, and returned (invisibly) so it can be used in compound statements.


slonik-az/LRutil documentation built on May 7, 2019, 3:17 p.m.