-
Notifications
You must be signed in to change notification settings - Fork 8
epi_slide*
no column behavior
#475
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
Comments
Couple notes:
We can add additional validation/defaults for the |
Ah, I guess I was a bit confused about |
The tidyverse way would be to use |
In #521 I'm just going for
in all cases, plus hinting them to use |
See #475. We have the ability to catch this consistently now since we are using `.keep = TRUE`, so the .x into each slide computation is an `epi_df` even if we're grouping by `geo_value` (previously, .x would have decayed into a tibble and we shouldn't override tibble's behavior).
See #475. We have the ability to catch this consistently now since we are using `.keep = TRUE`, so the .x into each slide computation is an `epi_df` even if we're grouping by `geo_value` (previously, .x would have decayed into a tibble and we shouldn't override tibble's behavior). Also add missing `group_map` import.
#521 lacks the |
Remaining TODO is the #469 (comment) & maybe elsewhere we have a alternative proposal for the default operating column(s). |
When I don't specify a column,
epi_slide
andepi_slide_mean
have pretty different behavior. Example commandepi_slide_mean(before = 6L)
orepi_slide(mean, before = 6L)
.epi_slide_mean
outputs aCan't recycle input of size 0 to size 1
error, whileepi_slide
just returns a ton ofNA
values.Ideally they would either
edit: second
epi_slide_mean
should've been justepi_slide
The text was updated successfully, but these errors were encountered: