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?
to your account
Since across() doesn't help with this problem.
Maybe select() and rename() could gain a .transform argument that would be applied to the variable names?
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() (#4923)
Successfully merging a pull request may close this issue.