tests/testthat/helper.R

# Setup some test partitions
p = new("Partition", c(0, 0, 1, 1, 1))
q = new("Partition", c(0, 0, 0, 1, 1))
r = new("Partition", c(0, 0, 1, 0, 0))
s = new("Partition", c(0, 0, 1, 2, 2))

random_partition <- new("Partition", sample(8, 100, replace = TRUE))

Try the partitionComparison package in your browser

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

partitionComparison documentation built on Aug. 24, 2023, 1:06 a.m.