R - Data.table - Drop columns using negative position

前端 未结 0 1090
鱼传尺愫
鱼传尺愫 2020-11-21 22:45

I like data table\'s way of deleting columns:

library(data.table)
data <- mtcars
setDT(data)
data[, 1:3 := NULL]

Deleting columns by posit

相关标签:
回答
  • 消灭零回复
提交回复
热议问题