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

dplyr::group_nest() is advised in Iteration chapter, but may become deprecated #1700

Open
florisvdh opened this issue Jan 9, 2025 · 0 comments

Comments

@florisvdh
Copy link
Contributor

In the Iteration chapter, dplyr::group_nest() is advised in order to restructure a data frame in such a way that rows represent the unique combinations of grouping variables and the remaining variables are moved to a list column (list of tibbles).

However the documentation of dplyr::group_nest() currently states:

group_nest() is not stable because tidyr::nest(.by =) provides very similar behavior. It may be deprecated in the future.

So I'd suggest to indeed use nest(.by =) (or group_by() |> nest()). I could make a pull request to implement that if you like.

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

1 participant