(v2.1.1.9083) update for first_isolate()

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2024-09-30 19:13:53 +02:00
1 parent 681fe011fe
commit 8907e8e4af
4 files changed
+12 -10

No files matched your search

+1 -2
View File
@@ -670,8 +670,7 @@ duplicated_antibiogram <- function(antibiogram, points_threshold, ignore_I, type
# fast return, only 1 isolate
return(FALSE)
}
stop("Check R/first_isolate.R -> duplicated_antibiogram()")
# first sort on data availability - count the dots and order that ascending
# first sort on data availability - count the dots and order that ascending so that highest availability of SIR is on top
number_dots <- vapply(FUN.VALUE = integer(1),
antibiogram,
function(x) sum(strsplit(x, "", fixed = TRUE)[[1]] == "."),