dt_del_cols | R Documentation |
Takes a data.table and a quoted sequence of column names and removes the specified column names from the data.table
dt_del_cols(DT, ...)
DT |
A data.table |
... |
arbitrary number of column names in quotes |
Returns data.table with those columns removed
mt <- as.data.table(mtcars)
dt_del_cols(mt, "cyl", "disp", "hp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.