inst/examples/ex_partitioning.R

# 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)

Try the rinform package in your browser

Any scripts or data that you put into this service are public.

rinform documentation built on April 1, 2018, 12:12 p.m.