subsetsOfSize | R Documentation |
For an input vector x, returns in a list, the collection of all subsets of x of size k.
subsetsOfSize(x, k)
x |
a vector from which to get subsets |
k |
the size of the subsets returned |
a list of all subsets of x of a given size k
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.