mirror of
https://github.com/msberends/AMR.git
synced 2025-07-18 11:33:18 +02:00
renamed year columns to ref
This commit is contained in:
@ -112,5 +112,19 @@ test_that("frequency table works", {
|
||||
expect_error(septic_patients %>% freq(peni, oxac, clox, amox, amcl,
|
||||
ampi, pita, czol, cfep, cfur))
|
||||
|
||||
# run diff
|
||||
expect_output(print(
|
||||
diff(freq(septic_patients$amcl),
|
||||
freq(septic_patients$amox))
|
||||
))
|
||||
expect_output(print(
|
||||
diff(freq(septic_patients$age),
|
||||
freq(septic_patients$age)) # same
|
||||
))
|
||||
expect_error(print(
|
||||
diff(freq(septic_patients$amcl),
|
||||
"Just a string") # not a freq tbl
|
||||
))
|
||||
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user