All permutations of a given size
Returns all n factorial permutations of a set
allperms(n)
n |
The size of the set, integer |
The function is very basic (the idiom is word(t(partitions::perms(n)))
) but is here for completeness.
Robin K. S. Hankin
as.cycle(allperms(5))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.