Function for finding matching rows between two matrices or data.frames. First the matrices or data.frames are vectorized by row wise pasting together the elements. Then it uses the function match. Thus the function returns a vector with the row numbers of (first) matches of its first argument in its second.
row.match(x, table, nomatch = NA)
A vector of the same length as 'x'.
match
tab <- data.frame(num=1:26,abc=letters)
x <- c(3,"c")
row.match(x,tab)
#> [1] 3
x <- data.frame(n=c(3,8),z=c("c","h"))
row.match(x,tab)
#> [1] 3 8