create grouping variables about the rowData and colData of a
SummarizedExperiment object. Unlike the data.frame
method
the resulting output class is left unchanged. Thus dplyr
generics for
SummarizedExperiment
must check grouping information manually.
Arguments
- .data
a SummarizedExperiment object
- ...
contextual expressions specifying which columns to ungroup. Omitting
...
ungroups the entire object.- .add
When
FALSE
, the default,group_by()
will override existing groups.- x
A SummarizedExperiment object
Examples
group_by(se_simple, rows(direction), cols(condition))
#> class: SummarizedExperiment
#> dim: 5 4
#> metadata(1): group_data
#> assays(2): counts logcounts
#> rownames(5): row_1 row_2 row_3 row_4 row_5
#> rowData names(3): direction gene length
#> colnames(4): col_1 col_2 col_3 col_4
#> colData names(2): condition sample