I have the following data set.
long lat hex
1: -74.25121 40.49963 1
2: -74.24428 40.49920 2
3: -74.23463 40.50110 3
4: -74.22234 40.50257 4
5: -74.24913 40.50574 5
I want all the combinations of the column "hex", order doesn't matter (ex: 1-2,1-3,1-4,4-1,3-1 . . . ). How would I go about approaching this