Generate all possible permutations (or n-tuples)
how about this:
tmp = expand.grid(1:2,1:2,1:2,1:2,1:2,1:2,1:2,1:2,1:2,1:2)
or this (thanks Tyler):
x <- list(1:2)
tmp = expand.grid(rep(x, 10))
how about this:
tmp = expand.grid(1:2,1:2,1:2,1:2,1:2,1:2,1:2,1:2,1:2,1:2)
or this (thanks Tyler):
x <- list(1:2)
tmp = expand.grid(rep(x, 10))