-
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
#4331 Updated distinct_if
and distinct_at
to include .keep_all argument
#4343
#4331 Updated distinct_if
and distinct_at
to include .keep_all argument
#4343
Conversation
Still think it makes sense to add it to |
I agree that it's superfluous as @beansrowning said, but it wouldn't be the only "superfluous" case to be in Do they? I really don't know, probably someone else can state a good case in favor/against it. |
@romainfrancois @DaniMori Fair point, it's reasonable to have it consistent across. Added. |
EDIT: Sike. After a little bit more sleep it is clear the issue lies between the chair and the keyboard 🤦♂ . Should be fixed now. |
This reverts commit 9ddd5f2. Incorrect argument declaration
- All checks passed local, Win 10 R3.5
closes #4331 |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
As @DaniMori suggested in #4331, this simply tacks the
.keep_all
argument onto the scoped variants ofdistinct()
.I wasn't sure if this was needed (or desired) but I have also wanted a scoped variant of
distinct()
which would allow you the option to keep all columns. Adding it todistinct_all()
seemed superfluous.My use case was reading in many data files where I am appending a
file
column to track provenance. Since my data is very raw, I want to check that there isn't a duplicate observation across two or more files.Something similar to this: