My intention here is to find the elements in common between a and b.
a <- seq(from=1, to=5, by=1)
b <- seq(from=5, to=13, by=1)
x <- which(a==b)
Warning message:
In a == b : longer object length is not a multiple of shorter object length.
How can I do this?