powered by
Checks whether there are any shared elements between two vectors.It is used internally
compareVecVec(VA, VB)
One vector
Another vector
A logical matrix showing the coincidences
# NOT RUN { compareVecVec(1:10, 7:12) V1 <- c("Apples", "Strawberries","Watermelon") V2 <- c("Ananas", "Apples", "Strawberries", "Coconut") compareVecVec(V1,V2) # }
Run the code above in your browser using DataLab