有没有比这更好的方法
DT <- DT[,!apply(DT,2,function(x) all(is.na(x))), with = FALSE]
仅在未完全用NAs填充的列上对数据表进行子集化?
NA
谢谢
r data.table
data.table ×1
r ×1