Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

Robin K. S. Hankin

Examples

as.cycle(allperms(5))

permutations

The Symmetric Group: Permutations of a Finite Set

v1.0-9
GPL-2
Authors
Robin K. S. Hankin [aut, cre] (<https://orcid.org/0000-0001-5982-0415>), Paul Egeler [ctb] (<https://orcid.org/0000-0001-6948-9498>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.