transmute.duckplyr_df {duckplyr} | R Documentation |
Create, modify, and delete columns
Description
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")
.
Usage
## S3 method for class 'duckplyr_df'
transmute(.data, ...)
Arguments
.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:
|
Fallbacks
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.
See Also
Examples
library(duckplyr)
transmute(mtcars, mpg2 = mpg*2)