|
28 | 28 | #' @template basic-slide-params |
29 | 29 | #' @param .f,... The computation to slide. The input will be a time window of |
30 | 30 | #' the data for a single subpopulation (i.e., a single `geo_value` and single |
31 | | -#' value for any [`other_keys`][as_epi_df] you set up for age groups, etc.). |
| 31 | +#' value for any [`other_keys`][as_epi_df] you set up, such as age groups, race, etc.). |
32 | 32 | #' The input will always have the same size, determined by `.window_size`, and |
33 | 33 | #' will fill in any missing `time_values`, using `NA` values for missing |
34 | 34 | #' measurements. The output should be a scalar value or a 1-row data frame; |
35 | | -#' these outputs will be collected and form a new column or columns in the |
| 35 | +#' these outputs will be collected into a new column or columns in the |
36 | 36 | #' `epi_slide()` result. Data frame outputs will be unpacked into multiple |
37 | 37 | #' columns in the result by default, or [`tidyr::pack`]ed into a single |
38 | 38 | #' data-frame-type column if you provide a name for such a column (e.g., via |
@@ -624,11 +624,11 @@ get_before_after_from_window <- function(window_size, align, time_type) { |
624 | 624 | #' `.window_size = Inf`) on the requested columns. Explicit `NA` measurements |
625 | 625 | #' are temporarily added to fill in any time gaps, and, for rolling |
626 | 626 | #' computations, to pad the time series to ensure that the first & last |
627 | | -#' computations are over exactly `.window_size` values. |
| 627 | +#' computations use exactly `.window_size` values. |
628 | 628 | #' |
629 | 629 | #' `epi_slide_opt` allows you to use any [data.table::froll] or |
630 | | -#' [slider::summary-slide] function. If none of the specialized functions here |
631 | | -#' work, you can use `data.table::frollapply` together with a non-rolling |
| 630 | +#' [slider::summary-slide] function. If none of those specialized functions fit |
| 631 | +#' your usecase, you can use `data.table::frollapply` together with a non-rolling |
632 | 632 | #' function (e.g., `median`). See [`epi_slide`] if you need to work with |
633 | 633 | #' multiple columns at once or output a custom type. |
634 | 634 | #' |
|
0 commit comments