Description Usage Arguments Author(s) See Also Examples
fsApply
, like many of the apply
-style functions in R, acts as an
iterator for flowSet
objects, allowing the application of a function
to either the flowFrame
or the data matrix itself. The output can then
be reconstructed as either a flowSet
, a list, or a matrix depending on
options and the type of objects returned.
1 |
x |
|
FUN |
the function to be applied to each element of |
... |
optional arguments to |
simplify |
logical (default: TRUE); if all true and all objects are
|
use.exprs |
logical (default: FALSE); should the |
B. Ellis
1 2 3 4 5 6 7 8 9 | fcs.loc <- system.file("extdata",package="flowCore")
file.location <- paste(fcs.loc, dir(fcs.loc), sep="/")
samp <- read.flowSet(file.location[1:3])
#Get summary information about each sample.
fsApply(samp,summary)
#Obtain the median of each parameter in each frame.
fsApply(samp,each_col,median)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.