csApply: Apply a function over the intensities in a cytoSet

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/csApply.R

Description

This a wrapper for sapply for objects of class cytoSet.

Usage

1
csApply(X, FUN, ..., simplify = TRUE)

Arguments

X

cytoSet.

FUN

the function to be applied.

...

optional arguments to FUN.

simplify

logical; should the result be simplified to a vector or matrix if possible? Gets passed on the sapply.

Details

A wrapper for sapply.

Value

Like sapply: If FUN always returns a scalar, then the value of this function is a named vector. If FUN always returns a vector of length n, then the value of this function is an n x length(X) matrix with dimnames. Else, the value of this function is a named list whose values are the return values of the individual calls to FUN.

Author(s)

Wolfgang Huber http://www.ebi.ac.uk/huber

See Also

sapply

Examples

1
2
3
4
cset=readCytoSet(path=system.file("extdata", package="prada"),
  pattern="[A-Z][0-9][0-9]$")
csApply(cset, nrow)
csApply(cset, colMeans)

prada documentation built on April 28, 2020, 7:52 p.m.