I have the two big and small list. I want to know which of the elements in big list are not in smaller list. The list consists of property
([1] \"character\"
While I think sets may help you to deal with different lists.
sets
In your case, you can just use:
A <- c("A", "B", "C", "D") B <- c("A", "B", "C") # to find difference setdiff(A, B) # to find intersect intersect(A, B) # to find union union(A, B)