tests/unit/partition_test.R

source('unit/setup.R')

library(clst)
data(actino)
data(strep)

test_partition_01 <- function(){

  dmat <- strep$dmat1
  groups <- strep$abbrev

  dists <- partition(dmat, groups, verbose=VERBOSE)
  checkTrue(all(c('vals','comparison') %in% colnames(dists)))
  checkTrue(identical(levels(dists$comparison), c('within','between')))
}

Try the clst package in your browser

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

clst documentation built on Nov. 8, 2020, 5:41 p.m.