powered by
discard(x, ...)discard_(x, vars)
discard_(x, vars)
library(data.table) DT <- data.table( id = c(1,2), v1 = c(1,1), v2 = c(2,1) ) discard(DT, id, v2) discard(DT, -id)
Run the code above in your browser using DataLab