Skip to contents

Rename columns in a flowFrame

Usage

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

Arguments

.data

A flowFrame

...

Unquoted name-value pairs (as specified by featureNames). 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 flowFrame's identifier will be preserved.

Examples


my_flowframe <- simulate_cytometry_data()$flowframe

 my_flowframe |>
   dplyr::rename(new_feature = feature_1)
#> flowFrame object 'V1'
#> with 100 cells and 10 observables:
#>             name        desc     range  minRange  maxRange
#> $P1  new_feature new_feature       101         0       100
#> $P2    feature_2   feature_2       101         0       100
#> $P3    feature_3   feature_3       100         0        99
#> $P4    feature_4   feature_4        99         0        98
#> $P5    feature_5   feature_5        99         0        98
#> $P6    feature_6   feature_6       100         0        99
#> $P7    feature_7   feature_7       101         0       100
#> $P8    feature_8   feature_8       101         0       100
#> $P9    feature_9   feature_9       100         0        99
#> $P10  feature_10  feature_10       101         0       100
#> 88 keywords are stored in the 'description' slot