csApply {prada} | R Documentation

## Apply a function over the intensities in a cytoSet

### Description

This a wrapper for `sapply` for objects of class `cytoSet-class`.

### 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`.

### 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

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

[Package prada version 1.10.1 Index]