Learn R Programming

seplyr (version 1.0.4)

group_by_se: group_by standard interface.

Description

Group a data frame by the groupingVars. group_by_se intentionally groups only by sets of variables, not by expressions over variables.

Usage

group_by_se(.data, groupingVars, add = FALSE)

Arguments

.data

data.frame

groupingVars

character vector of column names to group by.

add

logical, passed to group_by

Value

.data grouped by columns named in groupingVars

See Also

group_by, group_by_at

Examples

Run this code
# NOT RUN {

datasets::mtcars %.>%
  group_by_se(., c("cyl", "gear")) %.>%
  head(.)

# }

Run the code above in your browser using DataLab