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))
}

Try the IRanges package in your browser

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

IRanges documentation built on Dec. 14, 2020, 2 a.m.