powered by
drop_colr present since hutils 1.0.0.
drop_colr
hutils 1.0.0
drop_grep is identical but only present since hutils 1.2.0.
drop_grep
hutils 1.2.0
drop_colr(DT, pattern, ..., checkDT = TRUE)
A data.table.
data.table
A regular expression as in grepl.
grepl
Arguments passed to grepl.
If TRUE (the default), will error if DT is not a data.table.
TRUE
DT
# NOT RUN { library(data.table) dt <- data.table(x1 = 1, x2 = 2, y = 3) drop_grep(dt, "x") # }
Run the code above in your browser using DataLab