inst/unitTests/test_split.R

test_splitAsList <- function() {
    ir <- IRanges(sample(100),sample(100)+100)
    ir2 <- unlist(split(ir, ceiling(1:100 / 10)))
    checkTrue(all(ir==ir2))
}
Bioconductor/IRanges documentation built on Nov. 2, 2024, 4:32 p.m.