R/setutils.R

mintersect <- function(..., sorted=FALSE) {
    x <- Reduce(intersect, list(...))
    if (sorted) {
        sort(x)
    } else {
        x
    }
}

munion <- function(..., sorted=FALSE) {
    x <- Reduce(union, list(...))
    if (sorted) {
        sort(x)
    } else {
        x
    }
}

Try the omics package in your browser

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

omics documentation built on May 1, 2019, 8:45 p.m.