Last data update: 2014.03.03
|
R: All Permutations of Integers 1:n
permutations | R Documentation |
All Permutations of Integers 1:n
Description
Returns a matrix containing all permutations of the integers
1:n (one permutation per row).
Usage
permutations(n)
Arguments
n |
Number of element to permute.
|
Author(s)
Friedrich Leisch
Examples
permutations(3)
Results
|