I wanted to get all the combinations for 73,000 choose 2 and I tried to use combn
in order to calculate it.
combn(73000,2)
I received the following error:
Error in matrix(r, nrow = len.r, ncol = count) :
invalid 'ncol' value (too large or NA)
I figured that the number of combinations is 2,664,463,500 so multiplied by 8 should yield around 22GB which I had free on my machine. So even though it's a lot of combinations, it shouldn't fail. Any alternative way to calculate the number of combinations or explanations of why combn fails?