remove_cols: Inplace remove columns from a data.table

Description Usage Arguments Examples

View source: R/dplyr_inplace.r

Description

Inplace remove columns from a data.table

Usage

1
remove_cols(dt, cols)

Arguments

dt

a data.table

cols

a string with column names

Examples

1
2
3
4
5
6
7
## Not run: 
  dt = data.table(a=1:3, b=1:3, c=4:6)
  dt
  remove_cols(dt,c("a" ,"b"))
  dt

## End(Not run)

skranz/dplyrExtras documentation built on May 20, 2020, 6:39 p.m.