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

Closed
sfirke opened this issue Sep 11, 2015 · 1 comment
Assignees
Milestone

Comments

@sfirke
Copy link
Contributor

@sfirke sfirke commented Sep 11, 2015

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

Example:

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

Returns:

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
@sfirke
Copy link
Contributor Author

@sfirke 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.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants