speed improvement as.mo, freq title

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-10-31 12:10:49 +01:00
1 parent 3d4c4c678b
commit 9cd4ab928a
27 files changed
+289 -224

No files matched your search

+3 -1
View File
@@ -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