-
Notifications
You must be signed in to change notification settings - Fork 57
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
Support using by instead of keyby in grouped operations #136
Conversation
Originally the first parameter was "step", but since the first parameter should be a call, it didn't make sense to have it named "step".
Removed commented code and updated translation vignette Fix silly typo Update NEWS.md with key parameter Renamed link_by_struct parameter for clarity Originally the first parameter was "step", but since the first parameter should be a call, it didn't make sense to have it named "step". Renamed 'with' to 'using' with had a somewhat clear meaning, but using makes the most sense ("using by" or "using keyby").
…into feature/support-by
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks — this looks like a great start!
∆ `group_by` parameter `key` is now `arrange` to follow dplyr naming conventions. ∆ Internally, `keyed` is now `keyby` to be explicit about which data.table functionality it is associated ∆ The `by_struct` system is now just a function that modifies a call. Currently accepts three variables (call, groups, and keyby), but probably could be reduced to the call and current step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Just a few more smaller comments
∆ The `keyby` parameter in the step objects is now `arrange` for consistency ∆ `add_grouping_parameter` renamed to `add_grouping_param` and now has two arguments: a call and a step ∆ Updated translation vignette
Thanks! |
@psanker , thank you, this was a good issue to solve. The only problem left is that |
Addresses #85
This amends how
keyby
is added to the translated calls by creating a separate structure for by/keyby and a linking function to link the object to the call. It's a bit more flexible than checking if there are groups and then adding them. Users are able to accessby=
by settingkey = FALSE
ingroup_by()
:I'm still not certain about the term
key
for the parameter name since it could be confused withkey_by
. Maybe it could be something likeuse_by
to be explicit?