diff --git a/R/utils.R b/R/utils.R index 6625e5c3..c1804a90 100644 --- a/R/utils.R +++ b/R/utils.R @@ -1125,8 +1125,7 @@ validate_slide_window_arg <- function(arg, time_type, lower = 1, allow_inf = TRU #' to time values of time type `time_type`. If the given time type does not #' support infinite values, then it should produce +Inf or -Inf for analogous #' entries of `time_delta`, and match the addition result match the addition -#' result for non-infinite values, and product +Inf / -Inf when match the sign -#' and of `time_delta`. +#' result for non-infinite entries. #' #' @keywords internal time_delta_to_n_steps <- function(time_delta, time_type) { diff --git a/man/time_delta_to_n_steps.Rd b/man/time_delta_to_n_steps.Rd index 0f9325be..f5c6639b 100644 --- a/man/time_delta_to_n_steps.Rd +++ b/man/time_delta_to_n_steps.Rd @@ -22,8 +22,7 @@ infinite values) that produces the same result as \code{time_delta} when added to time values of time type \code{time_type}. If the given time type does not support infinite values, then it should produce +Inf or -Inf for analogous entries of \code{time_delta}, and match the addition result match the addition -result for non-infinite values, and product +Inf / -Inf when match the sign -and of \code{time_delta}. +result for non-infinite entries. } \description{ Convert a time delta to a compatible integerish number of steps between time values