Skip to content
Prev 307849 / 398503 Next

Filtering few column from one data frame based on another data frame

Hello,

Try the following.

keep <- which(!names(data2) %in% names(data1))
data1[, keep]

Hope this helps,

Rui Barradas
Em 13-10-2012 15:48, siddu479 escreveu: