rename.duckplyr_df {duckplyr} | R Documentation |
Rename columns
Description
This is a method for the dplyr::rename()
generic.
See "Fallbacks" section for differences in implementation.
rename()
changes the names of individual variables
using new_name = old_name
syntax.
Usage
## S3 method for class 'duckplyr_df'
rename(.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. |
... |
For For |
Fallbacks
There is no DuckDB translation in rename.duckplyr_df()
with a selection that returns no columns.
These features fall back to dplyr::rename()
, see vignette("fallback")
for details.
See Also
Examples
library(duckplyr)
rename(mtcars, thing = mpg)
[Package duckplyr version 1.1.0 Index]