transmute.duckplyr_df | R Documentation |
This is a method for the dplyr::transmute()
generic.
See "Fallbacks" section for differences in implementation.
transmute()
creates a new data frame containing only the specified computations.
It's superseded because you can perform the same job with mutate(.keep = "none")
.
## S3 method for class 'duckplyr_df'
transmute(.data, ...)
.data |
A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details. |
... |
< The value can be:
|
There is no DuckDB translation in transmute.duckplyr_df()
with a selection that returns no columns:
These features fall back to dplyr::transmute()
, see vignette("fallback")
for details.
dplyr::transmute()
library(duckplyr)
transmute(mtcars, mpg2 = mpg*2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.