allPerms {MSCquartets} | R Documentation |
Generate permutations
Description
Generate all permutations of 1 to n, as rows of a matrix
Usage
allPerms(n)
Arguments
n |
size of permutations |
Value
an n!xn matrix whose rows give permutations
Examples
allPerms(4)
[Package MSCquartets version 3.2 Index]