R: Lazily reorder a DuckDB relation object

rel_order {duckdb} | R Documentation

## Lazily reorder a DuckDB relation object

### Description

Lazily reorder a DuckDB relation object

### Usage

    rel_order(rel, orders)

### Arguments

`rel` | the DuckDB relation object
`orders` | a list of DuckDB expressions to order by

### Value

the now aggregated `duckdb_relation` object

### Examples

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

[Package duckdb version 0.4.0 Index]