R/dplyr-mutate.R

Defines functions mutate.compareClusterResult mutate.enrichResult

##' @method mutate enrichResult
##' @importFrom dplyr mutate
##' @importFrom rlang quos
##' @export
##' @author Guangchuang Yu 
mutate.enrichResult <- function(.data, ...) {
    dots <- quos(...)
    .data@result %<>% mutate(!!!dots)
    return(.data)
}

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


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