length

0th

Percentile

Various vector-like utilities for permutation objects.

Various vector-like utilities for permutation objects such as length, names(), etc

Usage
# S3 method for word
length(x)
# S3 method for permutation
length(x) <- value
# S3 method for word
names(x)
# S3 method for word
names(x) <- value
Arguments
x

permutation object

value

In function names<-.word(), the new names

Details

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.

See Also

size

Aliases
  • length.word
  • length.permutation
  • length<-.permutation
  • names
  • names.word
  • names<-.word
Examples
# NOT RUN {
x <- rperm(9,5)
names(x) <- letters[1:9]

data(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



# }
Documentation reproduced from package permutations, version 1.0-5, License: GPL-2

Community examples

Looks like there are no examples yet.