powered by
This function produces a matrix whose rows provide all possible permutations of the set of integers {0, 1, ..., n-1}.
{0, 1, ..., n-1}
enumerate.permutations(nItems)
The size of the set {0, 1, ..., n-1}, i.e., n.
n
A matrix of integers, where each row is a permutation.
# NOT RUN { enumerate.permutations(5) # }
Run the code above in your browser using DataLab