statar (version 0.1.1)

setdrop: Drop certain columns in place

Description

Drop certain columns in place

Usage

setdrop(x, ...)

setdrop_(x, vars)

Arguments

x
a data.table
...
Variables to keep. Default to all. See the select documentation.
vars
Used to work around non-standard evaluation.

Examples

Run this code
library(data.table)
DT <- data.table(
  id = c(1,2),
  v1 = c(1,1),
  v2 = c(2,1)
)
setdrop(DT, id)

Run the code above in your browser using DataLab