Skip to content

Commit

Permalink
Fix limits in urine24 by not using win_tbl
Browse files Browse the repository at this point in the history
  • Loading branch information
prockenschaub committed Apr 11, 2024
1 parent 7f2cc42 commit 3c0a7fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/callback-cncpt.R
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ urine24 <- function(..., min_win = hours(12L), limits = NULL,
step_factor <- convert_dt(hours(24L)) / as.double(interval)

if (is.null(limits)) {
limits <- collapse(res)
limits <- collapse(res, as_win_tbl = FALSE)
limits <- as_ts_tbl(limits, index_var = "start", interval = interval(res))
}

res <- fill_gaps(res, limits = limits)
Expand Down

0 comments on commit 3c0a7fc

Please sign in to comment.