Returns a matrix containing all permutations of the integers 1:n (one permutation per row).
1:n
permutations(n)
n
Number of element to permute.
Friedrich Leisch
permutations(3)