Description Usage Arguments Value Examples
Partition a number n
of items into all possible different subsets.
The number of partitions is given by the Bell number ‘B_n’.
1 | partitioning(n)
|
n |
Numeric specifying the number of items of the set to partition. |
Matrix giving all possible partitioning schemata.
1 2 3 4 5 6 | # All possible partitions of a set with 2 items
partitioning(2)
# All possible partitions of a set with 4 items
P <- partitioning(4)
t(P)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.