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

Error: corrupt 'grouped_df' when mutating grouped data frame after slicing a subset of records #1405

sfirke opened this issue Sep 11, 2015 · 1 comment


Copy link

sfirke commented Sep 11, 2015

Using dplyr I get a "corrupt grouped_df" message when I mutate on a grouped data frame after slicing a subset of records.


mtcars %>% group_by(cyl) %>% slice(1) %>% mutate(mpgplus = mpg + 1)


Error: corrupt 'grouped_df', contains 3 rows, and 32 rows in groups
sessionInfo() says I am using dplyr_0.4.3.9000.

(Same error message as #1341 but Hadley notes it's a separate cause)

@romainfrancois romainfrancois self-assigned this Sep 12, 2015
@romainfrancois romainfrancois added this to the 0.5 milestone Sep 12, 2015
Copy link
Contributor Author

sfirke commented Sep 12, 2015

Thanks Romain!

@lock lock bot locked as resolved and limited conversation to collaborators Jun 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
None yet

No branches or pull requests

2 participants