cyto_apply: Apply a function over cytometry objects

View source: R/cyto-helpers.R

cyto_applyR Documentation

Apply a function over cytometry objects

Description

Apply a function over cytometry objects

Usage

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

library(CytoExploreRData)

# Activation dataset
fs <- Activation

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


DillonHammill/CytoExploreR documentation built on March 2, 2023, 7:34 a.m.