count_* functions

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-08-22 00:02:26 +02:00
1 parent e47e77febc
commit 3e87c8f409
16 files changed
+504 -59

No files matched your search

+9
View File
@@ -29,4 +29,13 @@ test_that("ggplot_rsi works", {
summarise_all(portion_IR) %>% as.double()
)
expect_equal(
(septic_patients %>% select(amcl, cipr) %>% ggplot_rsi(x = "Antibiotic",
facet = "Interpretation",
fun = count_df))$data %>%
summarise_all(count_IR) %>% as.double(),
septic_patients %>% select(amcl, cipr) %>%
summarise_all(count_IR) %>% as.double()
)
})