The value matching function in R is very useful. But from my understanding, it does not sufficiently support two or high dimensional inputs.
R
For examp
You could use apply:
apply
z <- apply(x, 1, function(a) apply(y, 1, function(b) all(a==b)))
This will generate a matrix with nrow(x) rows and nrow(y) columns, whose entries mark the indices where there is a match.
nrow(x)
nrow(y)