powered by
Returns the row indicies of matrix A which match with B
match_rows(A, B)
matrix
matrix whose rows are subset of A
# NOT RUN { # A = t(utils::combn(10,3)) # B = A[sort(sample.int(nrow(A),10)),] # match_rows(A,B) # }
Run the code above in your browser using DataLab