as_tbl | R Documentation |
This function converts a lazy duckplyr frame or a data frame
to a dbplyr table in duckplyr's internal connection.
This allows using dbplyr functions on the data,
including hand-written SQL queries.
Use as_duckdb_tibble()
to convert back to a lazy duckplyr frame.
as_tbl(.data)
.data |
A lazy duckplyr frame or a data frame. |
A dbplyr table.
df <- duckdb_tibble(a = 1L)
df
tbl <- as_tbl(df)
tbl
tbl %>%
mutate(b = sql("a + 1")) %>%
as_duckdb_tibble()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.