1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 19:01:51 +02:00

(v0.8.0.9005) fix unit tests

This commit is contained in:
2019-10-26 22:21:26 +02:00
parent d2e8249edd
commit 412077a6f2
15 changed files with 20 additions and 22 deletions

View File

@ -461,7 +461,7 @@ mdro <- function(x,
left_join_microorganisms(by = col_mo) %>%
# add unconfirmed to where genus is available
mutate(MDRO = ifelse(!is.na(genus), 1, NA_integer_),
row_number = 1:nrow(x)) %>%
row_number = seq_len(nrow(x))) %>%
# transform to data.frame so subsetting is possible with x[y, z] (might not be the case with tibble/data.table/...)
as.data.frame(stringsAsFactors = FALSE)