mirror of
https://github.com/msberends/AMR.git
synced 2026-10-01 04:13:33 +02:00
(v1.4.0.9013) is_gram_negative/positive update
This commit is contained in:
1 parent
423879c034
commit
d3b1d33210
22 files changed
+149
-82
No files matched your search
@@ -117,4 +117,10 @@ test_that("mo_property works", {
|
||||
c(TRUE, FALSE, FALSE))
|
||||
expect_equal(is_gram_positive(c("Escherichia coli", "Staphylococcus aureus", "Candida albicans")),
|
||||
c(FALSE, TRUE, FALSE))
|
||||
|
||||
library(dplyr)
|
||||
expect_equal(example_isolates %>% filter(is_gram_negative()) %>% nrow(),
|
||||
730)
|
||||
expect_equal(example_isolates %>% filter(is_gram_positive()) %>% nrow(),
|
||||
1238)
|
||||
})
|
||||
Reference in new issue
Block a user