Learn R Programming

prada (version 1.48.0)

csApply: Apply a function over the intensities in a cytoSet

Description

This a wrapper for sapply for objects of class cytoSet.

Usage

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.

Value

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.

Details

A wrapper for sapply.

See Also

sapply

Examples

Run this code
cset=readCytoSet(path=system.file("extdata", package="prada"),
  pattern="[A-Z][0-9][0-9]$")
csApply(cset, nrow)
csApply(cset, colMeans)

Run the code above in your browser using DataLab