group_by_drop_default.DataFrame: Default value for .drop argument of group_by

View source: R/dplyr.R

group_by_drop_default.DataFrameR Documentation

Default value for .drop argument of group_by

Description

Default value for .drop argument of group_by

Usage

## S3 method for class 'DataFrame'
group_by_drop_default(.tbl)

Arguments

.tbl

A data frame

Value

TRUE unless .tbl is a grouped data frame that was previously obtained by group_by(.drop = FALSE)

Examples

group_by_drop_default(iris)

iris %>%
  group_by(Species) %>%
  group_by_drop_default()

iris %>%
  group_by(Species, .drop = FALSE) %>%
  group_by_drop_default()

jonocarroll/DFplyr documentation built on Oct. 16, 2024, 4:56 a.m.