You can use the setdiff() function to find the set difference between R vectors.
setdiff(x,y): Set difference between x and y, consisting of all elements of x that are not in y.
Here is an example:
x <- c(10,20,30,40,50,60)
y <- c(10,200,300,40,500,60)
The output of the above code will be:
 20 30 50