Skip to content

Commit 115251c

Browse files
committed
wording
1 parent 98fdca4 commit 115251c

File tree

5 files changed

+30
-28
lines changed

5 files changed

+30
-28
lines changed

R/methods-epi_archive.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ epix_detailed_restricted_mutate <- function(.data, ...) {
640640
#' computation. The computation will be run on each requested group-version
641641
#' combination, with a time window filter applied if `.before` is supplied.
642642
#'
643-
#' - If `.f` is a function must have the form `function(x, g, v)` or
643+
#' If `.f` is a function must have the form `function(x, g, v)` or
644644
#' `function(x, g, v, <additional configuration args>)`, where
645645
#'
646646
#' - `x` is an `epi_df` with the same column names as the archive's `DT`,
@@ -685,7 +685,7 @@ epix_detailed_restricted_mutate <- function(.data, ...) {
685685
#' to reporting latency. Unlike `epi_slide()`, `epix_slide()` won't fill in
686686
#' any missing `time_values` in this window.
687687
#' @param .versions Requested versions on which to run the computation. Each
688-
#' requested `.version` also serves as the anchor point around which for which
688+
#' requested `.version` also serves as the anchor point from which
689689
#' the `time_value` window specified by `.before` is drawn. If `.versions` is
690690
#' missing, it will be set to a regularly-spaced sequence of values set to
691691
#' cover the range of `version`s in the `DT` plus the `versions_end`; the

R/slide.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
#' @template basic-slide-params
2929
#' @param .f,... The computation to slide. The input will be a time window of
3030
#' 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.).
3232
#' The input will always have the same size, determined by `.window_size`, and
3333
#' will fill in any missing `time_values`, using `NA` values for missing
3434
#' 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
3636
#' `epi_slide()` result. Data frame outputs will be unpacked into multiple
3737
#' columns in the result by default, or [`tidyr::pack`]ed into a single
3838
#' 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) {
624624
#' `.window_size = Inf`) on the requested columns. Explicit `NA` measurements
625625
#' are temporarily added to fill in any time gaps, and, for rolling
626626
#' 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.
628628
#'
629629
#' `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
632632
#' function (e.g., `median`). See [`epi_slide`] if you need to work with
633633
#' multiple columns at once or output a custom type.
634634
#'

man/epi_slide.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/epi_slide_opt.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/epix_slide.Rd

Lines changed: 18 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)