-
Notifications
You must be signed in to change notification settings - Fork 8
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
Consider deprecating/moving .f
, .new_col_name
in epi_slide()
; data-masking ...
and vector outputs in epix_slide()
#629
Comments
Alternatively, consider moving We also might be able to standardize around tidy eval by focusing on the unnamed-tibble data-masking option, and having archive %>%
epix_slide({
<lots of code involving .x>
tibble(out_col_1 = 1:5, out_col_2 = 2:6)
}) |
.f
, .new_col_name
in epi_slide()
; data-masking ...
and vector outputs in epix_slide()
.f
, .new_col_name
in epi_slide()
; data-masking ...
and vector outputs in epix_slide()
Nat noted that it may be okay for |
Agree with Nat's note that |
Related: these messages about when the generality of Random notes:
tibble(a = 1:5, b = 2:6, c = 3:7) %>%
summarize({
.x <- pick(everything())
tibble(
min_a = min(.x$a),
min_bpc = min(.x$b + .x$c)
)
}) though we also don't support Related: #478 Limiting the |
The slide function documentation is wordy and complicated, and the code is very complicated.
Consider making
epi_slide()
support only the tidyeval case, removing.f
and.new_col_name
. Maybe consider moving.window_size
before...
so one could doedf %>% epi_slide(28, md_rate = median(rate))
. Would play better withtibble(outcol1 = ...., outcol2 = ....)
tidyeval feature, as there is no need to add an extra comma to make.f
missing. Would also play better if we eventually add across support. Potential drawbacks:my_growth_rate = { <multiple statements> }
.In
epix_slide()
, function and formula.f
and outputting data frames, not ordinary vectors, is more common, though data-masking and ordinary-vector output might be used for some maxtime_value
/ reporting latency calculations. We could potentially force function/formula usage.It'd also be good to do this at the same time as, or after, renaming
epi_slide()
andepix_slide()
to more distinct names.The text was updated successfully, but these errors were encountered: