mirror of
https://github.com/msberends/AMR.git
synced 2025-07-18 11:33:18 +02:00
quasiquotation for freq()
This commit is contained in:
@ -92,6 +92,12 @@ test_that("frequency table works", {
|
||||
expect_output(print(septic_patients %>% group_by(gender) %>% freq(amox, quote = TRUE)))
|
||||
expect_output(print(septic_patients %>% group_by(gender) %>% freq(amox, markdown = TRUE)))
|
||||
|
||||
# quasiquotation
|
||||
expect_output(print(septic_patients %>% freq(mo_genus(mo))))
|
||||
expect_output(print(septic_patients %>% freq(mo, mo_genus(mo))))
|
||||
expect_output(print(septic_patients %>% group_by(gender) %>% freq(mo_genus(mo))))
|
||||
expect_output(print(septic_patients %>% group_by(gender) %>% freq(mo, mo_genus(mo))))
|
||||
|
||||
# top 5
|
||||
expect_equal(
|
||||
septic_patients %>%
|
||||
|
Reference in New Issue
Block a user