| powerset | R Documentation |
Compute all possible combinations of a vector - ignoring the empty set
powerset(x, size_start = 1)
x |
Required. Input vector |
size_start |
First power set input size |
A list of possible options
# All possible combinations
powerset(1:4)
# Now try without ignoring the single sets:
powerset(1:4,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.