Skip to contents

Summarize a flowFrame.

Usage

# S3 method for flowFrame
summarise(.data, ..., .by = NULL, .groups = NULL)

Arguments

.data

.data A flowFrame

...

Name-value pairs of summary functions. The name will be the name of the variable in the result.

.by

Optionally, a selection of columns to group by for just this operation, functioning as an alternative to group_by().

.groups

Grouping structure of the result. * "drop_last": dropping the last level of grouping. * "drop": All levels of grouping are dropped. * "keep": Same grouping structure as .data. * "rowwise": Each row is its own group.

Value

A data.frame containing the summarized result.

Examples


my_flowframe <- simulate_cytometry_data()$flowframe

 my_flowframe |>
   dplyr::summarise(feature_1_mean = mean(feature_1))
#> # A tibble: 1 × 1
#>   feature_1_mean
#>            <dbl>
#> 1           49.1