summarize-table.express {table.express} | R Documentation |
Summarize columns
Description
Compute summaries for columns, perhaps by group.
Usage
## S3 method for class 'ExprBuilder'
summarize(
.data,
...,
.assume_optimized = NULL,
.parse = getOption("table.express.parse", FALSE),
.chain = getOption("table.express.chain", TRUE)
)
## S3 method for class 'ExprBuilder'
summarise(
.data,
...,
.assume_optimized = NULL,
.parse = getOption("table.express.parse", FALSE),
.chain = getOption("table.express.chain", TRUE)
)
## S3 method for class 'EagerExprBuilder'
summarize(.data, ..., .parent_env = rlang::caller_env())
## S3 method for class 'EagerExprBuilder'
summarise(.data, ..., .parent_env = rlang::caller_env())
## S3 method for class 'data.table'
summarize(.data, ...)
## S3 method for class 'data.table'
summarise(.data, ...)
Arguments
.data |
An instance of ExprBuilder. |
... |
Clauses for transmuting columns. For |
.assume_optimized |
An optional character vector with function names that you know
|
.parse |
Logical. Whether to apply |
.chain |
Logical. Should a new frame be automatically chained to the expression if the clause being set already exists? |
.parent_env |
See |
Details
The built expression is similar to what transmute
builds, but the function also checks that the
results have length 1.
To see more examples, check the vignette, or the table.express-package entry.