as_duckplyr_df {duckplyr} | R Documentation |
Convert to a duckplyr data frame
Description
For an object of class duckplyr_df
,
dplyr verbs such as mutate()
, select()
or filter()
will attempt to use DuckDB.
If this is not possible, the original dplyr implementation is used.
Usage
as_duckplyr_df(.data)
Arguments
.data |
data frame or tibble to transform |
Details
Set the DUCKPLYR_FALLBACK_INFO
and DUCKPLYR_FORCE
environment variables
for more control over the behavior, see config for more details.
Value
An object of class "duckplyr_df"
, inheriting from the classes of the
.data
argument.
Examples
tibble(a = 1:3) %>%
mutate(b = a + 1)
tibble(a = 1:3) %>%
as_duckplyr_df() %>%
mutate(b = a + 1)
[Package duckplyr version 0.3.2 Index]