Skip to contents

Keep or drop columns using their names and types.

Usage

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

Arguments

.data

A flowFrame

...

One or more unquoted expressions separated by commas. Variables names (as specified by featureNames) can be used as if they were positions in the flowFrame). Supports tidyselection.

Value

A flowFrame. The output has the following properties: * Rows are not affected. * Output columns are a subset of input columns, potentially with a different order. Columns will be renamed if new_name = old_name form is used. * The flowFrame's identifier will be preserved.

Examples


my_flowframe <- simulate_cytometry_data()$flowframe

 my_flowframe |>
   dplyr::select(feature_1)
#> flowFrame object 'V1'
#> with 100 cells and 1 observables:
#>          name      desc     range  minRange  maxRange
#> $P1 feature_1 feature_1       101         0       100
#> 25 keywords are stored in the 'description' slot