(v0.7.0.9001) new pathovars, small fixes

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2019-06-07 22:47:37 +02:00
1 parent 04c75e8e36
commit f02679fb63
83 files changed
+686 -583

No files matched your search

+8 -8
View File
@@ -414,15 +414,15 @@ first_isolate <- function(x,
if (length(x) == 1) {
return(TRUE)
}
indices = integer(0)
start = x[1]
ind = 1
indices[ind] = ind
indices <- integer(0)
start <- x[1]
ind <- 1
indices[ind] <- ind
for (i in 2:length(x)) {
if (as.numeric(x[i] - start >= episode_days)) {
ind = ind + 1
indices[ind] = i
start = x[i]
if (isTRUE(as.numeric(x[i] - start) >= episode_days)) {
ind <- ind + 1
indices[ind] <- i
start <- x[i]
}
}
result <- rep(FALSE, length(x))