R/AllGenerics.R

Defines functions .sweep.useAsDefault

##' @title Placeholder for generics functions documentation
##'
##' @name AllGenerics
##' @rdname AllGenerics
NULL


setGeneric("filterFeatures",
           function(object, filter, ...) standardGeneric("filterFeatures"))

setGeneric("subsetByFeature",
           function(x, y, ...) standardGeneric("subsetByFeature"))

setGeneric("zeroIsNA",
           function(object, i) standardGeneric("zeroIsNA"))

setGeneric("infIsNA",
           function(object, i) standardGeneric("infIsNA"))

setGeneric("nNA",
           function(object, i) standardGeneric("nNA"))

setGeneric("logTransform",
           function(object, ...) standardGeneric("logTransform"))

setGeneric("scaleTransform",
           function(object, ...) standardGeneric("scaleTransform"))

setGeneric("aggcounts",
           function(object, ...) standardGeneric("aggcounts"))

## base::sweep
.sweep.useAsDefault <- function(x, MARGIN, STATS, FUN = "-",
                                check.margin = TRUE, ...)
    base::sweep(x, MARGIN, STATS, FUN, check.margin, ...)

setGeneric("sweep",
           signature = "x",
           function(x, MARGIN, STATS, FUN = "-", check.margin = TRUE, ...)
               standardGeneric("sweep"),
           useAsDefault = .sweep.useAsDefault)

Try the QFeatures package in your browser

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

QFeatures documentation built on Nov. 8, 2020, 6:51 p.m.