mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 07:10:50 +01:00
(v3.0.1.9020) unit test fixes
This commit is contained in:
1 parent
ba4c159154
commit
499c830ee7
9 files changed
+42
-30
No files matched your search
@@ -314,7 +314,9 @@ antimicrobials_equal <- function(y,
|
||||
|
||||
key2sir <- function(val) {
|
||||
val <- strsplit(val, "", fixed = TRUE)[[1L]]
|
||||
as.double(as.sir(val))
|
||||
val.int <- rep(NA_real_, length(val))
|
||||
val.int[val %in% VALID_SIR_LEVELS] <- as.double(as.sir(val[val %in% VALID_SIR_LEVELS]))
|
||||
val.int
|
||||
}
|
||||
# only run on uniques
|
||||
uniq <- unique(c(y, z))
|
||||
|
||||
Reference in new issue
Block a user