This is the harp_list method for rename(). It
works in exactly the same way except that a harp_list is returned.
To use this function, the dplyr package must be attached and the
.harp_list suffix can be dropped.
Usage
# S3 method for harp_list
rename(.data, ...)
# S3 method for harp_list
rename_with(.data, .fn, ...)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
rename(): <tidy-select> Usenew_name = old_nameto rename selected variables.For
rename_with(): additional arguments passed onto.fn.- .fn
A function used to transform the selected
.cols. Should return a character vector the same length as the input.
Details
For rename_with, the .fn argument is mandatory and following
rename, the .cols argument selects all columns
to rename by default.