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 Aug. 29, 2019, 6:39 p.m.