-
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
rbind giving errors with filter #606
Comments
I also tried to add a
Relatedly: https://twitter.com/romain_francois/status/513634697600331776 |
Anyway, back to the original problem, one thing I could do is somehow check consistency between the attributes of a grouped data frame and the data frame itself, i.e.
Those are different, so it is not valid with respect to |
This also have undesired effects fo other verbs, e.g.:
|
I think the problem is that I'm implicitely assuming what I described above: for a So I could either:
The next problem is that asserting the assumption might be expensive. We can easily enough make the check about So far, we've sort of worked under the assumption that we create the Perhaps that is a documentation issue and we should not use Anyway, I'll hold off on this one until I get some guidance on what to do. |
…which prevent some issues related to corrupt `grouped_df` objects as the one made by rbind (#606).
I've implemented the test in
As said above, this does not guarantee complete coherence of the |
I'll see if I can figure out how to make |
Good luck with that; I'd be curious how this is done. |
Hmmm, ok, I guess it's unfixable due to the crazy dispatch that @arunsrinivasan do you do anything to fix this for data.table? |
@arunsrinivasan and R CMD check lets you get away with that? |
@hadley, that's what Matt, after exhausting all other options (as explained in the FAQ), has managed to do to get around this issue. It'd be great if someone comes up with a better fix... |
R CMD check does not have to know ;) |
When joining two dataframes with rbind sometimes would result in an object that appears to be correct, but with incorrect structure, that gives errors when using filter function. More detailed and comments on: http://stackoverflow.com/questions/25919927/rbind-tbl-and-df-gives-errors-with-filter?noredirect=1#comment40576529_25919927
The text was updated successfully, but these errors were encountered: