Use with=FALSE : cols = paste("V", c(1,2,3,5), sep="") dt[, !cols, with=FALSE]. I suggest going through the "Introduction to data.table" ...
確定! 回上一頁