-
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
scoped variants of arrange() respect the .by_group argument #3504
Conversation
@@ -5,6 +5,7 @@ | |||
#' variables before ordering with [funs()]. | |||
#' | |||
#' @inheritParams scoped | |||
#' @param .by_group see [arrange()] |
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.
Would @inheritParams
work here?
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.
🤷♂️
R/colwise-arrange.R
Outdated
if (inherits(.tbl, "grouped_df")){ | ||
arrange(.tbl, !!!funs, .by_group = .by_group) | ||
} else { | ||
arrange(.tbl, !!!funs) |
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.
Can we supply a .by_group
argument to arrange.tbl_df()
instead, and ignore it there? The patch would be smaller.
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.
And just ignore it in arrange.tbl_df
?
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.
Yes.
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! I'll tweak it a bit. |
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/ |
Closes #3245.