View source: R/misc-functions.R
subsets | R Documentation |
This function returns all possible subsets of a given set.
subsets(n, k, set = 1:n)
n |
the size of the set of which subsets will be computed |
k |
the size of the subsets |
set |
an optional vector to be taken as the set |
This function returns all possible subsets of a given set.
A matrix with subsets listed in its rows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.