permutations {ggEDA} | R Documentation |
Generate Permutations of the Integers 1..n
Description
Creates a matrix of all permutations for the integers from 1 to n.
Usage
permutations(n)
Arguments
n |
Number of elements to permute. |
Value
A matrix where each row is a permutation of 1..n.
[Package ggEDA version 0.1.0 Index]