dt_del_cols: Delete columns in a data.table

View source: R/utilities.R

dt_del_colsR Documentation

Delete columns in a data.table

Description

Takes a data.table and a quoted sequence of column names and removes the specified column names from the data.table

Usage

dt_del_cols(DT, ...)

Arguments

DT

A data.table

...

arbitrary number of column names in quotes

Value

Returns data.table with those columns removed

Examples

mt <- as.data.table(mtcars)
dt_del_cols(mt, "cyl", "disp", "hp")


libbib documentation built on Nov. 10, 2022, 6:16 p.m.