rel_project {duckdb}R Documentation

Lazily project a DuckDB relation object

Description

Lazily project a DuckDB relation object

Usage

rel_project(rel, exprs)

Arguments

rel

the DuckDB relation object

exprs

a list of DuckDB expressions to project

Value

the now projected duckdb_relation object

Examples

con <- DBI::dbConnect(duckdb())
rel <- rel_from_df(con, mtcars)
rel2 <- rel_project(rel, list(expr_reference("cyl"), expr_reference("disp")))

[Package duckdb version 0.6.0 Index]