Default value for .drop argument of group_by
group_by_drop_default(.tbl)
.tbl
: A data frameTRUE
unless .tbl
is a grouped data frame that was previously obtained by group_by(.drop = FALSE)
group_by_drop_default(iris) iris %>% group_by(Species) %>% group_by_drop_default() iris %>% group_by(Species, .drop = FALSE) %>% group_by_drop_default()
Useful links