move_to_front: Move columns to front

View source: R/utilities.R

move_to_frontR Documentation

Move columns to front

Description

Rearrange columns of a data.table object, moving a list of columns to the front, while leaving the remaining columns in their original order.

Usage

move_to_front(DT, cols)

Arguments

DT

data.table object

cols

names of columns to move to the front

Value

data.table with rearranged columns

Author(s)

Florian Klinglmueller


floatofmath/bt88.03.704 documentation built on March 25, 2022, 12:28 p.m.