-
Notifications
You must be signed in to change notification settings - Fork 130
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
Feature Request: single_value() #428
Comments
@sfirke , If I make a PR for this, do you think it would be of interest? (And no worries if you think it's out of scope.) |
I like this! It's in scope IMO. It's related to this: #18 There, I wanted a function for finding records like the one in Do you have thoughts on if it's doable / the most elegant way to both offer the diagnostic functionality and the convenience wrapper for Or maybe it should be two functions and you run the diagnostic one first, then the one you have above. That's probably more tidy-API style. It would be nice if the diagnostic function could easily be used in an |
Hmm. I don't tend to use |
If included here in |
We got an answer back that it's not a good fit for tidyr. I'll work up a PR. |
I agree that the error thrown by |
This is a function that would consider some values to be missing, but for all non-missing values, it would ensure that they have the same value.
I often work with datasets where I need to combine information for subjects in clinical trials. For that, I need to ensure that I have the same information from each of the different sources. For example, I may have multiple sources for the age of a subject when they start the study.
When I combine those data sets, I need to end up with the age as the same across all data. A paradigm I often use is below. Would that be of interest?
Created on 2021-02-04 by the reprex package (v1.0.0)
The text was updated successfully, but these errors were encountered: