drop_colr {hutils} | R Documentation |
Drop columns whose names match a pattern
Description
drop_colr
present since hutils 1.0.0
.
drop_grep
is identical but only present since hutils 1.2.0
.
Usage
drop_colr(DT, pattern, ..., checkDT = TRUE)
Arguments
DT |
A |
pattern |
A regular expression as in |
... |
Arguments passed to |
checkDT |
If |
Examples
library(data.table)
dt <- data.table(x1 = 1, x2 = 2, y = 3)
drop_grep(dt, "x")
[Package hutils version 1.8.1 Index]