-
Notifications
You must be signed in to change notification settings - Fork 8
Make epix_slide
more like group_modify
#311
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
Conversation
`epix_slide` already has summarize/reframe-like column behavior: it outputs the grouping columns + columns from the user computations. Make it also have `reframe`-like row behavior: * Accept any number of elements/rows out of user computations (instead of requiring either 1 or a particular number derived from an inferred/assumed "computation effective key"). * Do not recycle length-1 user computation outputs to the "expected" length/nrow.
Previously, broadcasting in `epix_slide` would remove any rows filled in by `.drop=FALSE`, making the `.drop` setting more or less useless. Now that `epix_slide` does not broadcast, update docs&tests accordingly. Additionally, add some missing validation for the `.drop` parameter. Other changes: * Tweak code using `setDT` to do it in a pipe to read better (avoid a line setting an `out_DT` variable to a non-DT value, even temporarily). * Format some roxygen comments.
While we decide on when we should output |
…bble.epi_df` To make `epix_slide` more like `reframe` and to make `as_tibble` on `epi_df`s act more like other tibble subclasses.
|
epix_slide
more like reframe
epix_slide
more like group_modify
rather than `reframe`. This way we can match the grouping/ungroupedness just like in `epi_slide`, except for the zero-variable groupings not supported by `grouped_df`.
Remove the backticks around the parameter names, which don't belong and were caught by `check()`.
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.
Several questions and one logical branch that wasn't updated.
not the reasons for deprecation.
Add test for `epix_slide` on function or tidyeval with `all_versions=FALSE`, and for formula or tidyeval with `all_versions=TRUE`.
Document behavior when `all_rows = TRUE` and `as_list_col = TRUE`; this behavior might be different from before move to use `vctrs` though. Add tests to cover this case + others, which was caught only via a vignette build failing.
Think this is now pretty much fixed up. Some remaining minor TODOs:
|
Checked with nmdefries on this and think it's ready to merge. |
Replacement for #290 using branch from the correct remote.