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-BioC_release documentation built on May 7, 2019, 1:55 a.m.