permutations (version 1.0-0)

print: Print methods for permutation objects

Description

Print methods for permutation objects with matrix-like printing for words and bracket notation for cycle objects.

Usage

"print"(x, ...) "print"(x, ...) as.character_cyclist(y,comma=TRUE)

Arguments

x
Object of class permutation with words dispatched to print.word() and cycles dispatched to print.cycle()
...
Further arguments (currently ignored)
y,comma
In as.character.cyclist(), argument y is a list of cycles (a cyclist); and comma is Boolean, specifying whether to include a comma in the output

Value

Returns its argument invisibly, after printing it.

See Also

nicify_cyclist

Examples

Run this code
x <- rperm(4,9)
as.word(x)
as.cycle(x)

Run the code above in your browser using DataLab