group_by.decorated: Group_by Decorated

View source: R/dplyr.R

group_by.decoratedR Documentation

Group_by Decorated

Description

Preserves class when grouping decorated.

Usage

## S3 method for class 'decorated'
group_by(.data, ..., add = FALSE, .drop = group_by_drop_default(.data))

Arguments

.data

A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details.

...

In group_by(), variables or computations to group by. Computations are always done on the ungrouped data frame. To perform computations on the grouped data, you need to use a separate mutate() step before the group_by(). Computations are not allowed in nest_by(). In ungroup(), variables to remove from the grouping.

add

When FALSE, the default, group_by() will override existing groups. To add to the existing groups, use .add = TRUE.

This argument was previously called add, but that prevented creating a new grouping variable called add, and conflicts with our naming conventions.

.drop

Drop groups formed by factor levels that don't appear in the data? The default is TRUE except when .data has been previously grouped with .drop = FALSE. See group_by_drop_default() for details.

See Also

Other dplyr: anti_join.decorated(), arrange.decorated(), full_join.decorated(), inner_join.decorated(), left_join.decorated(), mutate.decorated(), right_join.decorated(), select.decorated(), semi_join.decorated(), slice.decorated(), summarise.decorated(), summarize.decorated(), ungroup.decorated()


yamlet documentation built on Oct. 6, 2023, 9:07 a.m.