powered by
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, ...)
Returns data.table with those columns removed
A data.table
arbitrary number of column names in quotes
mt <- as.data.table(mtcars) dt_del_cols(mt, "cyl", "disp", "hp")
Run the code above in your browser using DataLab