Skip to content
Prev 318917 / 398521 Next

How to combine conditional argument and logical argument in R to create subset of data...

Hi,
How about this:

indxTem1<-paste0(Tem1[,1],Tem1[,2])
?indxTem2<-paste0(Tem2[,1],Tem2[,2])
Tem1[!indxTem1%in%indxTem2,]
#?????? V1 V2
?#[1,] 333 11
?#[2,] 111 16
?#[3,] 111 17
?#[4,] 111 20
?#[5,] 222 21
?#[6,] 222 22
?#[7,] 222 23
?#[8,] 222? 1
?#[9,] 222? 2
#[10,] 333? 3
#[11,] 333? 4
#[12,] 333? 5
#[13,] 333? 6
#[14,] 333? 7


A.K.