0

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

Naveen
  • 1,190
  • 7
  • 20

1 Answers1

0

There is a logical NOT operator(!) which gives the opposite value of the result.

Try this:

ISL2N=subset(Grouptwo, !(Grouptwo$Initials %in% ISL$Initials))
Naveen
  • 1,190
  • 7
  • 20