Skip to contents

Rename columns in a flowSet

Usage

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

Arguments

.data

A flowSet

...

Unquoted name-value pairs (as specified by the featureNames of the flowFrames making up the flowSet). Use new_name = old_name to rename selected columns

Value

An object of the same type as .data. The output has the following properties: * Rows are not affected. * Column names are changed; column order is preserved. * The flowSet's pData will be preserved.

Examples

my_flowset <- simulate_cytometry_data()$flowset

my_flowset |>
  dplyr::rename(new_feature = feature_1)
#> A flowSet with 5 experiments.
#> 
#> column names(10): new_feature feature_2 ... feature_9 feature_10
#>