Skip to content

Commit 4792aea

Browse files
committed
fix(time_plus_slide_window_arg): on non-integerish, non-Inf y
1 parent cc1a563 commit 4792aea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/time-utils.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ time_plus_slide_window_arg <- function(x, y, time_type, max_time_value) {
390390
if (y == Inf) {
391391
rep(max_time_value, vec_size(x))
392392
} else {
393-
time_plus_n_steps(x, y, time_type)
393+
x + y
394394
}
395395
}
396396

@@ -399,6 +399,6 @@ time_minus_slide_window_arg <- function(x, y, time_type, min_time_value) {
399399
if (y == Inf) {
400400
rep(min_time_value, vec_size(x))
401401
} else {
402-
time_minus_n_steps(x, y, time_type)
402+
x - y
403403
}
404404
}

0 commit comments

Comments
 (0)