x \ y using mathematical notation. Suppose
x <- c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,1,1,1,3) y <- c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1)
How can I get a vector with ALL the values in x that are not in y. i.e the result should be:
There is a similar question here. However, none of the answers returns the result that I want.
© Stack Overflow or respective owner