Learn R Programming

duckdb (version 0.6.0)

rel_order: Lazily reorder a DuckDB relation object

Description

Lazily reorder a DuckDB relation object

Usage

rel_order(rel, orders)

Value

the now aggregated duckdb_relation object

Arguments

rel

the DuckDB relation object

orders

a list of DuckDB expressions to order by

Examples

Run this code
con <- DBI::dbConnect(duckdb())
rel <- rel_from_df(con, mtcars)
rel2 <- rel_order(rel, list(expr_reference("hp")))

Run the code above in your browser using DataLab