deleteColsDT: deleteColsDT()

Description Usage Arguments Examples

Description

Deletes all of the specified columns in a data.table by reference.

Usage

1
deleteColsDT(data = NULL, deleteCols = NULL, verbose = TRUE)

Arguments

data

a data.table

deleteCols

a character vector of column names o delete

verbose

TRUE by default, if FALSE it turns off the messages that appear after each column is deleted by reference.

Examples

1
2
3
columnsToDelete <- c("mpg", "cyl", "disp")
mtcars <- data.table(mtcars)
deleteColsDT(mtcars, columnsToDelete)

jakesherman/jakemisc documentation built on May 18, 2019, 9:08 a.m.