powered by
Clause for ordering rows.
order_by(.data, ...)# S3 method for ExprBuilder order_by( .data, ..., .collapse, .parse = getOption("table.express.parse", FALSE), .chain = getOption("table.express.chain", TRUE) )# S3 method for data.table order_by(.data, ...)
# S3 method for ExprBuilder order_by( .data, ..., .collapse, .parse = getOption("table.express.parse", FALSE), .chain = getOption("table.express.chain", TRUE) )
# S3 method for data.table order_by(.data, ...)
The input data.
Arguments for the specific methods.
Ignored. See details.
Logical. Whether to apply rlang::parse_expr() to obtain the expressions.
rlang::parse_expr()
Logical. Should a new frame be automatically chained to the expression if the clause being set already exists?
The ExprBuilder method dispatches to where-table.express, but doesn't forward the .collapse argument.
.collapse
To see more examples, check the vignette, or the table.express-package entry.
data("mtcars") data.table::as.data.table(mtcars) %>% order_by(-cyl, gear)
Run the code above in your browser using DataLab