Skip to content

Commit

Permalink
Fix bug in find_missing_time()
Browse files Browse the repository at this point in the history
  • Loading branch information
seananderson committed May 9, 2023
1 parent 1adaccc commit 889e485
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,8 @@ check_irregalar_time <- function(data, time, spatiotemporal, time_varying) {
find_missing_time <- function(x) {
if (!is.factor(x)) {
ti <- sort(unique(x))
mindiff <- min(diff(ti))
# mindiff <- min(diff(ti))
mindiff <- 1L
allx <- seq(min(ti), max(ti), by = mindiff)
setdiff(allx, ti)
}
Expand Down

0 comments on commit 889e485

Please sign in to comment.