mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 05:50:48 +01:00
speed improvement as.mo, freq title
This commit is contained in:
1 parent
3d4c4c678b
commit
9cd4ab928a
27 files changed
+289
-224
No files matched your search
+3
-1
@@ -383,7 +383,9 @@ mo_validate <- function(x, property, ...) {
|
||||
Lancefield <- FALSE
|
||||
}
|
||||
|
||||
if (!all(x %in% AMR::microorganisms[, property]) | Becker %in% c(TRUE, "all") | Lancefield == TRUE) {
|
||||
if (!all(x %in% microorganismsDT[[property]])
|
||||
| Becker %in% c(TRUE, "all")
|
||||
| Lancefield %in% c(TRUE, "all")) {
|
||||
exec_as.mo(x, property = property, ...)
|
||||
} else {
|
||||
x
|
||||
|
||||
Reference in new issue
Block a user