Say we have to different sets of data like:
A <- (1:20)
B <- (9:18)
Now to output the overlapping number the following can be used:
C <- A[B]
But what if we want the opposite. The following does not work:
C <- A[!B]
Why, and how can one output the unique values?