group_by_drop_default: Default value for .drop argument of group_by

View source: R/group-by.R

group_by_drop_defaultR Documentation

Default value for .drop argument of group_by

Description

Default value for .drop argument of group_by

Usage

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()


dplyr documentation built on Nov. 17, 2023, 5:08 p.m.