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

More examples in across() documentation #7621

Open
AmeliaMN opened this issue Jan 5, 2025 · 1 comment
Open

More examples in across() documentation #7621

AmeliaMN opened this issue Jan 5, 2025 · 1 comment

Comments

@AmeliaMN
Copy link

AmeliaMN commented Jan 5, 2025

When I use across() I almost always want to do the thing to every single column. For whatever reason, that tidyselect action is hard for me to remember/find. Is it all()? Is it everything()? Etc. It would be great to have an example in the across() documentation that does the thing to every column. Additionally, it would be awesome to have an example that does the thing conditionally depending on the variable type. For example, rounding all the numeric variables.

@marcuslehr
Copy link

I second this. Honestly I find across() super confusing and frequently revert to the _if/_at/_all functions to do what I'm trying to do. I've tried to learn across() several times and I either can't figure out how to make it work or it's very painful. I'd frankly be onboard with reverting to the legacy functions, but I'm sure that won't happen so some better examples in the doc would certainly help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants