(v0.7.1.9068) gramstain to freq()

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2019-08-30 14:50:56 +02:00
1 parent 34a82d091e
commit 88ee1b7268
15 files changed
+211 -238

No files matched your search

+5 -1
View File
@@ -25,9 +25,13 @@ test_that("frequency table works", {
library(clean)
# mo
expect_true(is.freq(freq(example_isolates$mo)))
# for this to work, the output of mo_gramstain() is to be expected as follows:
expect_equal(mo_gramstain("B_ESCHR_COL"), "Gram-negative")
expect_equal(mo_gramstain("B_STPHY_AUR"), "Gram-positive")
# rsi
expect_true(is.freq(freq(example_isolates$AMX)))
library(dplyr)
expect_true(is.freq(example_isolates %>% freq(mo)))
expect_true(is.freq(example_isolates %>% freq(AMX)))
})