group_by-table.express {table.express} | R Documentation |
Grouping clauses
Description
Grouping by columns of a data.table::data.table.
Usage
## S3 method for class 'ExprBuilder'
group_by(
.data,
...,
.parse = getOption("table.express.parse", FALSE),
.chain = getOption("table.express.chain", TRUE)
)
## S3 method for class 'data.table'
group_by(.data, ...)
Arguments
.data |
An instance of ExprBuilder. |
... |
Clause for grouping on columns. The |
.parse |
Logical. Whether to apply |
.chain |
Logical. Should a new frame be automatically chained to the expression if the clause being set already exists? |
Details
Everything in ...
will be wrapped in a call to list
.
To see more examples, check the vignette, or the table.express-package entry.
Examples
data("mtcars")
data.table::as.data.table(mtcars) %>%
start_expr %>%
group_by(cyl, gear)
[Package table.express version 0.4.2 Index]