nullperm

0th

Percentile

Null permutations

Null permutations are the equivalent of NULL

Keywords
datasets
Usage
nullcycle
nullword
Details

These objects are here to deal with the case where a length-zero permutation is extracted. The behaviour of these null objects is not entirely consistent.

Note

The objects documented here are distinct from the identity permutation, id, documented separately.

Format

Object nullcycle is an empty list coerced to class cycle, specfically cycle(list())

Object nullword is a zero-row matrix, coerced to word, specifically word(matrix(integer(0),0,0))

See Also

id

Aliases
  • nullperm
  • nullword
  • nullcycle
Examples
# NOT RUN {
rperm(10,4)[0]  # null word

as.cycle(1:5)[0]  # null cycle

data(megaminx)
c(NULL,megaminx)      # probably not what the user intended...
c(nullcycle,megaminx) # more useful.
c(id,megaminx)        # also useful.

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

Community examples

Looks like there are no examples yet.