Created
April 2, 2020 14:30
-
-
Save chasemc/004e37fd4ae21e03ec69b4b67d8f68d1 to your computer and use it in GitHub Desktop.
combn, one at a time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
N=5 | |
for( i in 1:(N-1) ){ | |
for( j in (i+1):N ){ | |
print(paste(i,j)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.biostars.org/p/3694/#3700