pset | R Documentation |
Powerset
Function to return the powerset for a numeric or character vector of set elements, with options for filtering sets by setlength. Changing min.length or max.length arguments from default values produces a subset of the powerset.
pset(x, min.length = 0, max.length = NULL)
x |
Numerical or character vector |
min.length |
Minimum length of a set to return the set. Default = 0, therefore the NULL set is included by default. |
max.length |
Maximum length of a set to return the set. Default = NULL, meaning any set at least as large as min.length will be returned. |
List with powerset of x, or a subset of the powerset if min.length != 0 and/or max.length != NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.