length | R Documentation |
Various vector-like utilities for permutation objects such as
length
, names()
, etc
## S3 method for class 'word'
length(x)
## S3 replacement method for class 'permutation'
length(x) <- value
## S3 method for class 'word'
names(x)
## S3 replacement method for class 'word'
names(x) <- value
x |
permutation object |
value |
In function |
These functions have methods only for word objects; cycle objects use
the methods for lists. It is easy to confuse the length of a
permutation with its size
.
It is not possible to set the length of a permutation; this is more trouble than it is worth.
Robin K. S. Hankin
size
x <- rperm(5,9)
x
names(x) <- letters[1:5]
x
megaminx
length(megaminx) # the megaminx group has 12 generators, one per face.
size(megaminx) # the megaminx group is a subgroup of S_129.
names(megaminx) <- NULL # prints more nicely.
megaminx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.