标签: r data.table subset
样本数据:
DT = data.table(x=rep(c("b","a","c"),each=3), y=c(1,3,6), v=1:99) l <- as.numeric(sample(1:99, 21))
如何删除数据表$v的值DT与值相同的每一行: DT$v == l[ i ]
$v
DT
DT$v == l[ i ]