View source: R/write_dataset.R
as_dataset | R Documentation |
Push a local (in-memory) dataset into a the duckdb database as a table. This enables it to share the connection source with other data. This is equivalent to the behavior of copy=TRUE on many (but not all) of the two-table verbs in dplyr.
as_dataset(df, conn = cached_connection())
df |
a local data frame. Otherwise will be passed back without side effects |
conn |
A connection to a database. |
a remote dplyr::tbl
connection to the table.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.