Skip to contents

Order rows using column values

Usage

# S3 method for flowFrame
arrange(.data, ..., .by_group = FALSE)

Arguments

.data

A flowFrame

...

Variables, or functions of variables, to arrange by.

.by_group

Unused.

Value

An object of the same type as .data. The output has the following properties: * All rows appear in the output, but (usually) in a different place. * Columns are not modified. * The flowFrame's identifier will be preserved.

Examples


my_flowframe <- simulate_cytometry_data()$flowframe

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