-
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
Use case for mutate(clean = TRUE) #302
Comments
I'm now slightly leaning towards a new verb called |
FWIW, I like it. |
When I picked |
It might be ok - what does the signature of |
The problem I think is more the semantic difference. I know we had this discussion before, but it's not settled. Use case
|
Per Hadley's suggestion, this was moved from the manipulatr google group. link
Let's say I get a csv file with a bunch of variables named "XPF102", "FGR24D", and so on. There may be twenty of these.
From my data-dictionary, I see that "XPF102" is pressure in psi, "FGR24D" is a part-per-million of contaminant, and so on.
I have used plyr::summarise() to do two things at once (this could be what you are trying to get away from in dplyr):
Using dplyr, I might have to do this:
Doing this, I seem to have the opportunity to mistype a variable name by violating DRY.
Hadley suggested:
I like the idea. My only (relatively uneducated) concern is if the user wants to name a variable
clean
, but I'm sure there is a clever way to avoid that.Thanks,
Ian
The text was updated successfully, but these errors were encountered: