| group_by {ir} | R Documentation |
Group rows in ir objects by one or more variables
Description
Group rows in ir objects by one or more variables
Usage
group_by.ir(
.data,
...,
.add = FALSE,
.drop = dplyr::group_by_drop_default(.data)
)
ungroup.ir(.data, ...)
Arguments
.data |
An object of class |
... |
In |
.add |
When This argument was previously called |
.drop |
Drop groups formed by factor levels that don't appear in the
data? The default is |
Value
.data with grouped rows (group_by.ir()) or ungrouped rows
(ungroup.ir()).
Source
See Also
Other tidyverse:
arrange.ir(),
distinct.ir(),
extract.ir(),
filter-joins,
filter.ir(),
mutate-joins,
mutate,
nest,
pivot_longer.ir(),
pivot_wider.ir(),
rename,
rowwise.ir(),
select.ir(),
separate.ir(),
separate_rows.ir(),
slice,
summarize,
unite.ir()
Examples
## group_by
dplyr::group_by(ir_sample_data, sample_type)
## ungroup
dplyr::ungroup(dplyr::group_by(ir_sample_data, sample_type))