RobinHankin / partitions

R package for integer partitions
9 stars 5 forks source link

summary() could be better #33

Open RobinHankin opened 2 years ago

RobinHankin commented 2 years ago
> summary(riffle(4))

[1,] 1 1 1 1 1 1 1 1 1 1 ... 5 5 5 5 5 5 5 5 5 5
[2,] 2 2 2 2 2 2 2 2 2 2 ... 6 6 6 6 6 6 6 6 6 6
[3,] 3 3 3 3 3 5 5 5 5 5 ... 1 1 1 1 1 7 7 7 7 7
[4,] 4 5 5 5 5 3 3 3 3 6 ... 2 7 7 7 7 1 1 1 1 8
[5,] 5 4 6 6 6 4 6 6 6 3 ... 7 2 2 2 8 2 2 2 8 1
[6,] 6 6 4 7 7 6 4 7 7 4 ... 8 3 3 8 2 3 3 8 2 2
[7,] 7 7 7 4 8 7 7 4 8 7 ... 3 4 8 3 3 4 8 3 3 3
[8,] 8 8 8 8 4 8 8 8 4 8 ... 4 8 4 4 4 8 4 4 4 4
> 

It would be nice if summary() reported that the result has 70 columns, and that it is an object of class partition.