Skip to contents

Get Combinations

Usage

combinations(x, prop, maxsam = Inf, seed = 1)

Arguments

x

a vector with the combination elements.

prop

numeric. the proportion of elements to be drawn.

maxsam

numeric. maximum sample of combinations

seed

numeric. set.seed() argument.

Value

matrix. Each column of the matrix is a different combination.

Examples

if (FALSE) {
combinations(1:10, 0.25, maxsam = 7, seed = 2938)
}