Skip to content

Commit

Permalink
Update R/slide.R
Browse files Browse the repository at this point in the history
Co-authored-by: brookslogan <[email protected]>
  • Loading branch information
dshemetov and brookslogan authored Sep 10, 2024
1 parent 65b2a2f commit cb52db4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/slide.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
#' section for more. If a function, `.f` must have the form `function(x, g, t,
#' ...)`, where
#'
#' - "x" is a data frame with the same column names as the original object,
#' - `x` is a data frame with the same column names as the original object,
#' minus any grouping variables, with only the windowed data for one
#' group-`.ref_time_value` combination
#' - "g" is a one-row tibble containing the values of the grouping variables
#' - `g` is a one-row tibble containing the values of the grouping variables
#' for the associated group
#' - "t" is the ref_time_value for the current window
#' - "..." are additional arguments
#' - `t` is the `.ref_time_value` for the current window
#' - `...` are additional arguments
#'
#' If a formula, `.f` can operate directly on columns accessed via `.x$var` or
#' `.$var`, as in `~mean(.x$var)` to compute a mean of a column `var` for each
Expand Down

0 comments on commit cb52db4

Please sign in to comment.