(v1.4.0.9013) is_gram_negative/positive update

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-11-09 13:07:02 +01:00
1 parent 423879c034
commit d3b1d33210
22 files changed
+149 -82

No files matched your search

+6
View File
@@ -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)
})