Learn R Programming

duckdb (version 0.6.0)

rel_from_df: 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)

Value

the duckdb_relation object wrapping the data.frame

Arguments

con

a DuckDB DBI connection object

df

the data.frame

Examples

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

Run the code above in your browser using DataLab