Skip to contents

Create, modify, and delete columns.

Usage

# S3 method for flowSet
mutate(.data, ...)

Arguments

.data

A flowSet

...

Name-value pairs. The name (the left side of the equals sign) gives the name of the column in the output. The right side of the equation performs computations using the names of each channel according to featureNames. Supports tidyselection.

Value

A flowSet. The output has the following properties: * Columns from .data will be preserved according to the .keep argument. * Existing columns that are modified by ... will always be returned in their original location. * New columns created through ... will be placed according to the .before and .after arguments. * The number of rows is not affected. * Columns given the value NULL will be removed.

Examples

my_flowset <-
  simulate_cytometry_data()$flowset

my_flowset |>
  dplyr::mutate(new_feature = feature_1 + feature_2)
#> A flowSet with 5 experiments.
#> 
#> column names(11): feature_1 feature_2 ... feature_10 new_feature
#>