multisubsets: Multisubsets of cardinality k

Description Usage Arguments Examples

Description

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

Usage

1
multisubsets(v, k = length(v))

Arguments

v

A vector to sample from

k

The size of the subsamples

Examples

1
2
3
4
5
multisubsets(1:3, 4)

multisubsets(1:4, 3)

multisubsets(c("red", "blue", "green"))

AkselA/R-confintplot documentation built on May 9, 2019, 12:52 p.m.