tests/sampleTuples.R

library("aroma.light")

pairs <- sampleTuples(1:10, size=5, length=2)
print(pairs)

triples <- sampleTuples(1:10, size=5, length=3)
print(triples)

# Allow tuples with repeated elements
quadruples <- sampleTuples(1:3, size=5, length=4, replace=TRUE)
print(quadruples)
HenrikBengtsson/aroma.light documentation built on July 3, 2023, 1:57 a.m.