Creating a combination data.table in R

237 views Asked by At

I would like to do the following:

A B
1 2
1 3
1 4
2 3
2 4
3 4

using data.table, but I am not sure how to exclude the already used numbers cumulatively.

0

There are 0 answers