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
Since across() doesn't help with this problem.
across()
Maybe select() and rename() could gain a .transform argument that would be applied to the variable names?
select()
rename()
.transform
The text was updated successfully, but these errors were encountered:
Would be nice if df %>% rename_if("Count of (.*?) [Ff]emales", "\\1 count") could work (i.e. special case string inputs so that you could reuse regexp groups in the output).
df %>% rename_if("Count of (.*?) [Ff]emales", "\\1 count")
Sorry, something went wrong.
Maybe rename_with() as a name?
Implement rename_with()
688ead6
Fixes #4771
Implement rename_with() (#4923)
0c3bc3f
Successfully merging a pull request may close this issue.
hadley commentedJan 17, 2020
Since
across()
doesn't help with this problem.Maybe
select()
andrename()
could gain a.transform
argument that would be applied to the variable names?The text was updated successfully, but these errors were encountered: