Description Usage Arguments Examples
All possible ways to sample k elements from a given set with replacement. Based off multic::subsets() See also: Statistics and Computing, Venebles and Ripley, p49
1 | multisubsets(v, k = length(v))
|
v |
A vector to sample from |
k |
The size of the subsamples |
1 2 3 4 5 | multisubsets(1:3, 4)
multisubsets(1:4, 3)
multisubsets(c("red", "blue", "green"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.