-
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
Suggestion: Add argument keep_grouping_vars
to cur_data()
#5342
Comments
Could you please provide an example of how you’re using do that requires this proposed feature? |
Here, I want to calculate global surrogate trees (within Species) to explain random forest predictions:
|
BTW one work around in the meantime is just to |
Thanks for the hint. It actually is my workaround, but now with a better feeling :-). |
Question is whether this should be an argument (e.g. |
Maybe even better as own function, yes. The behaviour of
|
The new
cur_data()
indplyr
is fantastic. However, it does not yet serve as a full replacement ofdo
. Why? According to its docu, it excludes the grouping variables. I suppose this is to ensure that the same variable name does not appear twice in the resulting data.frame.Would it be possible to add an argument
keep_grouping_vars = FALSE
tocur_data
where this could be overwritten?Here is an example:
This is my suggestion:
The current workaround:
The text was updated successfully, but these errors were encountered: