partitions (version 1.10-7)

as.matrix.partition: Coerce partitions to matrices and vice versa

Description

Coercion to and from partitions

Usage

# S3 method for partition
as.matrix(x, ...)
as.partition(x, ...)

Arguments

x

Object to be coerced

...

Further arguments

Author

Robin K. S. Hankin

Examples

Run this code
as.matrix(parts(5))

Run the code above in your browser using DataLab