rel_from_df: Convert a R data.frame to a DuckDB relation object

View source: R/relational.R

rel_from_dfR Documentation

Convert a R data.frame to a DuckDB relation object

Description

Convert a R data.frame to a DuckDB relation object

Usage

rel_from_df(con, df)

Arguments

con

a DuckDB DBI connection object

df

the data.frame

Value

the duckdb_relation object wrapping the data.frame

Examples

con <- DBI::dbConnect(duckdb::duckdb())
rel <- rel_from_df(con, mtcars)

duckdb documentation built on Sept. 20, 2022, 9:07 a.m.