Grouping by columns of a data.table::data.table.
An instance of ExprBuilder.
Clause for grouping on columns. The by
inside the data.table
's frame.
Logical. Whether to apply rlang::parse_expr()
to obtain the expressions.
Logical. Should a new frame be automatically chained to the expression if the clause being set already exists?
Everything in ...
will be wrapped in a call to list
.
To see more examples, check the vignette, or the table.express-package entry.
data("mtcars")
data.table::as.data.table(mtcars) %>%
start_expr %>%
group_by(cyl, gear)
#> .DT_[, , by = list(cyl, gear)]