partitions (version 1.9-22)

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

Examples

Run this code
# NOT RUN {
as.matrix(parts(5))
# }

Run the code above in your browser using DataLab