Description Usage Arguments Value Author(s) References See Also Examples
Generate all lexicographic permutations of a vector. If the vector is of length N, there are N! permutation.
1 2 | ## Default S3 method:
lexicographicPermutations(x, ...)
|
x |
The |
... |
Not used. |
Returns a matrix
with N columns and N! rows, where
N is the length of the vector.
Henrik Bengtsson
[1] A.G. Thakurta, Lexicographic Permutation Analysis,
http://www.cs.wpi.edu/~dobrush/cs504/f02/projects/Anupama.htm
See lexicographicPermutation
() to generate (only) the n:th
lexicographic permutation of a vector.
See permutations
() for a wrapper function to generate
different types of permutations.
See x[sample(n)]
to generate a random permutation.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.