Group a flowFrame into a flowSet using one or more variables.
Source:R/dplyr_verbs.R
group_by.flowFrame.Rd
Group a flowFrame into a flowSet using one or more variables.
Usage
# S3 method for flowFrame
group_by(.data, ..., .add = FALSE, .drop = dplyr::group_by_drop_default(.data))
Arguments
- .data
- ...
Unquoted variables or columns to group by according to .data's
featureNames
.- .add
Unused.
- .drop
Unused.
Value
A flowSet
containing one
flowFrame
for each of the unique combinations of columns
selected in .... Metadata about grouping columns will be stored in the output
flowSet
's pData
.
Examples
my_flowframe <-
simulate_cytometry_data()$flowframe |>
dplyr::mutate(
random_group =
sample(
c("a", "b"),
size = nrow(simulate_cytometry_data()$flowframe),
replace = TRUE
)
)
my_flowframe |>
dplyr::group_by(random_group)
#> A flowSet with 2 experiments.
#>
#> column names(10): feature_1 feature_2 ... feature_9 feature_10
#>