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

group_split(): add a '.groups_to_names=T' type argument #7042

Closed
barnabasharris opened this issue Jun 17, 2024 · 2 comments
Closed

group_split(): add a '.groups_to_names=T' type argument #7042

barnabasharris opened this issue Jun 17, 2024 · 2 comments

Comments

@barnabasharris
Copy link

barnabasharris commented Jun 17, 2024

When splitting by categorical (or indeed integer) groups it might be useful to transfer the grouped values to the names of the resulting list object, to assist with functions later in the pipeline.

@etiennebacher
Copy link

I think this was already addressed in #4223 (and rejected)

@DavisVaughan
Copy link
Member

Yea names on the list are not the right place for this information as it only works decently for single variable cases, and even then it isn't perfect.

I think the results of tidyr::nest(.by = ) are much more appropriate for this

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