1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 08:11:58 +02:00

eucast update

This commit is contained in:
2018-11-01 20:23:33 +01:00
parent f7687557c9
commit 5476fecc73
16 changed files with 82 additions and 69 deletions

View File

@ -198,11 +198,10 @@ first_isolate <- function(tbl,
check_columns_existance(col_keyantibiotics)
if (!is.null(col_mo)) {
if (!tbl %>% pull(col_mo) %>% is.mo()) {
tbl[, col_mo] <- as.mo(tbl[, col_mo])
}
# join to microorganisms data set
tbl <- tbl %>% left_join_microorganisms(by = col_mo)
tbl <- tbl %>%
mutate_at(vars(col_mo), as.mo) %>%
left_join_microorganisms(by = col_mo)
col_genus <- "genus"
col_species <- "species"
}