-
Notifications
You must be signed in to change notification settings - Fork 993
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
Return all duplicated rows #924
Comments
I agree that this is useful, but if |
i intended it to be a new function, not change default functionality of |
I'd like that (I deleted my FR since it was a one liner). Maybe, |
This form looks pretty idiomatic to me: Not sure it's worth adding a new function, and it would be weird to make Please open a new issue if there's strong disagreement with the above. |
One relevant SO question. Also @matthieugomez brought this up a while ago (don't remember where).
Suppose we've a
data.table
:Edited to clarify: The new function implemented with this FR should instead return all
TRUE
for those groups that occur more than once. That is, in this case:Right now, we can do this by doing:
But it might be useful to have this as a separate function. Filing it so that we don't forget.
A more general (+useful) variant of this would be to subset only those groups whose
.N > some_value
. The example illustrated here hassome_value = 1L
.The text was updated successfully, but these errors were encountered: