order_by-table.express {table.express} | R Documentation |
Order by clause
Description
Clause for ordering rows.
Usage
order_by(.data, ...)
## S3 method for class 'ExprBuilder'
order_by(
.data,
...,
.collapse,
.parse = getOption("table.express.parse", FALSE),
.chain = getOption("table.express.chain", TRUE)
)
## S3 method for class 'data.table'
order_by(.data, ...)
Arguments
.data |
The input data. |
... |
Arguments for the specific methods. |
.collapse |
Ignored. See details. |
.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
The ExprBuilder method dispatches to where-table.express, but doesn't forward the .collapse
argument.
To see more examples, check the vignette, or the table.express-package entry.
Examples
data("mtcars")
data.table::as.data.table(mtcars) %>%
order_by(-cyl, gear)
[Package table.express version 0.4.2 Index]