condense {partitions} | R 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 “ |
Details
Experimental: caveat emptor!
Author(s)
Robin K. S. Hankin
Examples
condense(parts(9))
condense(compositions(9,3),0)
condense(diffparts(17),col="+")
[Package partitions version 1.10-9 Index]