R/dplyr-arrange.R

Defines functions arrange.compareClusterResult arrange.enrichResult

##' @method arrange enrichResult
##' @export
arrange.enrichResult <- function(.data, ...) {
    dots <- quos(...)
    .data@result %<>% arrange(!!!dots,)
    return(.data)
}

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


##' @method arrange compareClusterResult
##' @export
arrange.compareClusterResult <- function(.data, ...) {
    dots <- quos(...)
    .data@compareClusterResult %<>% arrange(!!!dots,)
    return(.data)
}
YuLab-SMU/clusterProfiler documentation built on Nov. 3, 2024, 9:38 p.m.