mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 07:51:57 +02:00
speed improvement as.mo, freq title
This commit is contained in:
@ -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