assayDataApply: Apply across an assay

assayDataApplyR Documentation

Apply across an assay

Description

Apply function row (feature) or column (sample)-wise to selected assay

Apply function row (feature) or column (sample)-wise to selected assay

Usage

assayDataApply(X, MARGIN, FUN, ..., elt = "exprs")

assayDataApply(X, MARGIN, FUN, ..., elt = "exprs")

Arguments

X

NanoStringExperiment object

MARGIN

integer to apply across row or column

FUN

function to apply

...

parameters to pass to FUN

elt

expression matrix for assay element "exprs"

Value

assay data matrix

assay data matrix

Examples

data(exampleNSEData)
assayDataApply(testExp, 1, mean)

data(exampleNSEData)
assayDataApply(testExp, 1, mean, elt="exprs")


Nanostring-Biostats/NanoStringExperiment documentation built on April 28, 2022, 6:24 a.m.