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

id

The identity permutation


Description

The identity permutation leaves every element fixed

Usage

is.id(x)
is.id_single_cycle(x)
## S3 method for class 'cycle'
is.id(x)
## S3 method for class 'list'
is.id(x)
## S3 method for class 'word'
is.id(x)

Arguments

x

Object to be tested

Details

The identity permutation is problematic because it potentially has zero size.

Value

The variable id is a cycle as this is more convenient than a zero-by-one matrix.

Function is.id() returns a Boolean with TRUE if the corresponding element is the identity, and FALSE otherwise. It dispatches to either is.id.cycle() or is.id.word() as appropriate.

Function is.id.list() tests a cyclist for identityness.

Note

The identity permutations documented here are distinct from the null permutations documented at nullperm.Rd.

Author(s)

Robin K. S. Hankin

See Also

Examples

is.id(id)

as.word(id)  # weird

x <- rperm(10,4)
x[3] <- id
is.id(x*inverse(x))

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.