Skip to content

Instantly share code, notes, and snippets.

@chasemc
Created April 2, 2020 14:30
Show Gist options
  • Save chasemc/004e37fd4ae21e03ec69b4b67d8f68d1 to your computer and use it in GitHub Desktop.
Save chasemc/004e37fd4ae21e03ec69b4b67d8f68d1 to your computer and use it in GitHub Desktop.
combn, one at a time
N=5
for( i in 1:(N-1) ){
for( j in (i+1):N ){
print(paste(i,j))
}
}
@chasemc
Copy link
Author

chasemc commented Apr 2, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment