Renames columns of a GPU table by applying a function to their names,
similar to dplyr::rename_with(). Runs entirely as a schema-only
operation, like rename.tbl_gpu().
Usage
# S3 method for class 'tbl_gpu'
rename_with(.data, .fn, .cols = dplyr::everything(), ...)Arguments
- .data
A
tbl_gpuobject created bytbl_gpu().- .fn
A function (or one-sided formula, e.g.
~ paste0(.x, "_2")) applied once to the character vector of selected (old) names; must return a character vector of the same length.- .cols
Tidyselect specification of which columns to rename (default: all columns). Does not itself support renaming.
- ...
Additional arguments passed to
.fn.
