Description Usage Arguments Examples
Deletes all of the specified columns in a data.table by reference.
1 | deleteColsDT(data = NULL, deleteCols = NULL, verbose = TRUE)
|
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. |
1 2 3 | columnsToDelete <- c("mpg", "cyl", "disp")
mtcars <- data.table(mtcars)
deleteColsDT(mtcars, columnsToDelete)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.