For example, say I have the two data frames...
d1 <- data.frame(c(a,b,c,d,e,f))
d2 <- data.frame(c(a,a,a,b,b,d,d,d,d,d,e,e,f))
And I want to search 'a' from d1 in d2 and reveal the index of every matching value, which can be stored in a vector.
I've searched for and played around with the Match() function, but this only seems to work when there is just one matching value.
Thanks