Description Usage Arguments Value References Examples
All possible combinations of the given number of items.
1 | allcombs(num, from = 0, to = num)
|
num |
A scalar, the number of items. |
from |
A scalar, the minimum number of items in each combination, default 0. |
to |
A scalar, the maximum number of items in each combination,
default |
A matrix with rows corresponding to each possible combination and columns corresponding to item number.
Based on a method posted by Petr Savicky on 20 Jul 2012 to R-help [link].
1 | allcombs(3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.