R/dplyr-group_by.R

Defines functions group_by.compareClusterResult group_by.enrichResult

##' @method group_by enrichResult
##' @export
group_by.enrichResult <- function(.data, ..., add = FALSE, .drop = FALSE) {
    dots <- quos(...)
    .data@result %<>% group_by(!!!dots, add = add, .drop = .drop)
    return(.data)
}


##' @method group_by gseaResult
##' @export
group_by.gseaResult <- group_by.enrichResult

##' @method group_by compareClusterResult
##' @export
group_by.compareClusterResult <- function(.data, ..., add = FALSE, .drop = FALSE) {
    dots <- quos(...)
    .data@compareClusterResult %<>% group_by(!!!dots, add = add, .drop = .drop)
    return(.data)
}

Try the clusterProfiler package in your browser

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

clusterProfiler documentation built on Feb. 11, 2021, 2:02 a.m.