partitions | R Documentation |
Determine all unrestricted partitions of an integer. This function is equivalent to the function parts in the partitions package.
partitions(n)
n |
an integer |
a matrix whose rows are the n-tuples
Robin K. S. Hankin, from package partitions
partitions(5)
str(partitions(5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.