mirror of
https://github.com/msberends/AMR.git
synced 2025-07-18 11:33:18 +02:00
grouping var for freq
This commit is contained in:
@ -61,6 +61,9 @@ test_that("frequency table works", {
|
||||
expect_output(septic_patients %>% select(1:9) %>% freq() %>% print())
|
||||
expect_output(print(freq(septic_patients$age), nmax = 20))
|
||||
|
||||
# grouping variable
|
||||
expect_output(print(septic_patients %>% group_by(gender) %>% freq(hospital_id)))
|
||||
|
||||
# top 5
|
||||
expect_equal(
|
||||
septic_patients %>%
|
||||
|
Reference in New Issue
Block a user