permutations (version 1.0-9)

allperms: All permutations of a given size

Description

Returns all n factorial permutations of a set

Usage

allperms(n)

Arguments

n

The size of the set, integer

Details

The function is very basic (the idiom is word(t(partitions::perms(n)))) but is here for completeness.

Examples

# NOT RUN {
as.cycle(allperms(5))
# }