Posit Community
generate a matrix of all possible combinations of 5 numbers in n columns
General
martin.R
October 15, 2024, 11:28am
2
There may be a more elegant solution:
n <- 5 expand.grid(rep(list(seq(0, n - 1)), 3))
show post in topic