fixed | R Documentation |
Finds which elements of a permutation object are fixed
## S3 method for class 'word'
fixed(x)
## S3 method for class 'cycle'
fixed(x)
x |
Object of class |
Returns a Boolean vector corresponding to the fixed elements of a permutation.
The function is vectorized; if given a vector of permutations,
fixed()
returns a Boolean vector showing which elements are fixed
by all of the permutations.
This function has two methods: fixed.word()
and
fixed.cycle()
, neither of which coerce.
Robin K. S. Hankin
tidy
fixed(as.cycle(1:3)+as.cycle(8:9)) # elements 4,5,6,7 are fixed
fixed(id)
data(megaminx)
fixed(megaminx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.