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)

Try the aroma.light package in your browser

Any scripts or data that you put into this service are public.

aroma.light documentation built on May 2, 2018, 2:52 a.m.