I have the code
ISL2N=subset(Grouptwo, Grouptwo$Initials %in% ISL$Initials)
Now I want to do subsetting of values in Grouptwo
, where Grouptwo$Initials
does not match ISL$Initials
I have the code
ISL2N=subset(Grouptwo, Grouptwo$Initials %in% ISL$Initials)
Now I want to do subsetting of values in Grouptwo
, where Grouptwo$Initials
does not match ISL$Initials
There is a logical NOT operator(!) which gives the opposite value of the result.
Try this:
ISL2N=subset(Grouptwo, !(Grouptwo$Initials %in% ISL$Initials))