-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
lost Groups cause dplyr functions to crash R #308
Comments
So what happens is that R's regular
The internal code is now more strict at deciding that an object is a grouped data frame, instead of just relying on the class. |
Cool - makes sense. Thanks for the explanation. |
romainfrancois
added a commit
that referenced
this issue
Mar 24, 2014
romainfrancois
added a commit
that referenced
this issue
Mar 24, 2014
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Losing Groups in a grouped_df, and subsequently using dplyr functions, causes R to crash.
If I mix non-dplyr functions like subset on grouped_dfs, the Groups are lost. When the groups are lost, any use of filter(), select(), mutate(), summarise() causes R to crash.
require( dplyr)
DF <- data.frame( C1 = 1:2, C2 = 1:2) %.% group_by(C1)
C1 C2
1 1 1
2 2 2
** Using dplyr functions on the following grouped_df will crash R. Notice, no Groups:
C1 C2
1 1 1
2 2 2
C1 C2
1 1 1
This crash sneaks up over and over in converting old functions to dplyr.
The text was updated successfully, but these errors were encountered: