Generate permutations of dimensions to find optimal no of batches
permutations(n, r, v = 1:n, set = TRUE, repeats.allowed = FALSE)See gtools::permutations.
See gtools::permutations.
See gtools::permutations.
See gtools::permutations.
See gtools::permutations.
Taken from gtools to minimize dependencies. See permutations of the gtools packages for details