Skip to content
New issue

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

Need equivalent of scoped select/rename helpers #4771

Closed
hadley opened this issue Jan 17, 2020 · 2 comments · Fixed by #4923
Closed

Need equivalent of scoped select/rename helpers #4771

hadley opened this issue Jan 17, 2020 · 2 comments · Fixed by #4923
Labels
feature verbs 🏃‍♀️
Milestone

Comments

@hadley
Copy link
Member

hadley commented Jan 17, 2020

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?

@hadley
Copy link
Member Author

hadley commented Feb 16, 2020

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).

@hadley
Copy link
Member Author

hadley commented Feb 22, 2020

Maybe rename_with() as a name?

@hadley hadley added feature verbs 🏃‍♀️ labels Mar 1, 2020
@hadley hadley added this to the 1.0.0 milestone Mar 1, 2020
hadley added a commit that referenced this issue Mar 3, 2020
hadley added a commit that referenced this issue Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature verbs 🏃‍♀️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant