permutations (version 1.0-9)

fixed: Fixed elements

Description

Finds which elements of a permutation object are fixed

Usage

# S3 method for word
fixed(x)
# S3 method for cycle
fixed(x)

Arguments

x

Object of class word or cycle

Value

Returns a Boolean vector corresponding to the fixed elements of a permutation.

See Also

tidy

Examples

# NOT RUN {
fixed(as.cycle(1:3)+as.cycle(8:9))   # elements 4,5,6,7 are fixed
fixed(id)


data(megaminx)
fixed(megaminx)


# }