Let\'s say I have a matrix x which contains 10 rows and 2 columns. I want to generate a new matrix M that contains each unique pair of rows from
x
M
You can also try the "relations" package. Here is the vignette. It should work like this:
relation_table(x %><% x)