condense: Condensed form for partitions

condenseR Documentation

Condensed form for partitions

Description

Given a partition, coerce to a nice compact character format

Usage

condense(x, minval=1, col)

Arguments

x

A partition or a matrix whose columns are partitions

minval

Minimum value to include in the printing, defaulting to 1 [meaning to ignore zero values]. Set to “0” for compositions

col

String specifying the collapse value with missing value meaning to use the empty string if values are all single digit, and a comma if not. Using “+” is good for actual partitions

Details

Experimental: caveat emptor!

Author(s)

Robin K. S. Hankin

Examples


condense(parts(9))
condense(compositions(9,3),0)
condense(diffparts(17),col="+")


RobinHankin/partitions documentation built on Feb. 28, 2024, 12:08 a.m.