R: Lazily filter a DuckDB relation object

rel_filter {duckdb} | R Documentation

## Lazily filter a DuckDB relation object

### Description

Lazily filter a DuckDB relation object

### Usage

    rel_filter(rel, exprs)

### Arguments

`rel` | the DuckDB relation object
`exprs` | a list of DuckDB expressions to filter by

### Value

the now filtered `duckdb_relation` object

### Examples

    con <- DBI::dbConnect(duckdb())
    DBI::dbExecute(con, 'CREATE MACRO gt(a, b) AS a > b')
    rel <- rel_from_df(con, mtcars)
    rel2 <- rel_filter(rel, list(expr_function("gt", list(expr_reference("cyl"), expr_constant("6")))))

[Package duckdb version 0.4.0 Index]