cyto_apply: Apply a function over cytometry objects

Description Usage Arguments Author(s) See Also Examples

View source: R/cyto-helpers.R

Description

Apply a function over cytometry objects

Usage

1
cyto_apply(x, FUN, ..., simplify = TRUE, use.exprs = FALSE)

Arguments

x

object of class flowSet or cytoset.

FUN

function to apply to each flowFrame or cytoframe in the supplied flowSet or cytoset.

...

optional arguments to FUN.

simplify

logical indicating whether the resulting list should be simplified into a flowSet or bound into a matrix or data.frame using rbind, set to TRUE by default.

use.exprs

logical indicating whether the function should be applied to the raw data in each flowFrame, set to FALSE by default.

Author(s)

Dillon Hammill, Dillon.Hammill@anu.edu.au

See Also

fsApply

Examples

1
2
3
4
5
6
7
library(CytoExploreRData)

# Activation dataset
fs <- Activation

# Sample each flowFrame
fs <- cyto_apply(fs, cyto_sample)

DillonHammill/CytoExploreR documentation built on July 9, 2020, 1:53 a.m.