Get Exclusive Elements between Two Objects in R Programming – setdiff() Function
setdiff() function in R Language is used to find the elements which are in the first Object but not in the second Object.
Syntax: setdiff(x, y)
x and y: Objects with sequence of items
 1 5 6
x1 1 5 2 6 3 7