1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 23:21:56 +02:00

(v0.7.1.9068) gramstain to freq()

This commit is contained in:
2019-08-30 14:50:56 +02:00
parent 34a82d091e
commit 88ee1b7268
15 changed files with 211 additions and 238 deletions

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)))
})