inst/unitTests/test_clusterSample.R

test_clusterSample <- function() {
    data(hypoData)
    tcc <- new("TCC", hypoData, c(1, 1, 1, 2, 2, 2))

    h1 <- clusterSample(hypoData)
    h2 <- clusterSample(unique(hypoData[rowSums(hypoData) > 0, ]))
    h3 <- clusterSample(tcc)

    checkEquals(h1, h2)
    checkEquals(h1, h3)
}

Try the TCC package in your browser

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

TCC documentation built on Nov. 8, 2020, 8:20 p.m.