permutations (version 1.0-0)

fixed: Fixed elements

Description

Finds which elements of a permutation object are fixed

Usage

"fixed"(x) "fixed"(x)

Arguments

x
Object of class word or cycle
...
further arguments (currently unused)

Value

Returns a Boolean vector corresponding to the fixed elements

See Also

tidy

Examples

Run this code
fixed(as.cycle(1:3)+as.cycle(8:9))   # elements 4,5,6,7 are fixed
fixed(id)
fixed(megaminx)


Run the code above in your browser using DataCamp Workspace