We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a difference between rlang::set_names and dplyr::rename_with? Are both needed?
rlang::set_names
dplyr::rename_with
library(purrr) iris %>% set_names( . %>% sub("Petal", "x", .) %>% sub("Sepal", "y", .)) %>% names ## [1] "y.Length" "y.Width" "x.Length" "x.Width" "Species" # same code except set_names replaced with rename_with library(dplyr) iris %>% rename_with( . %>% sub("Petal", "x", .) %>% sub("Sepal", "y", .)) %>% names ## [1] "y.Length" "y.Width" "x.Length" "x.Width" "Species"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there a difference between
rlang::set_names
anddplyr::rename_with
? Are both needed?The text was updated successfully, but these errors were encountered: