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

rel_from_df {duckdb} | R 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)

[Package duckdb version 0.4.0 Index]