mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 10:31:53 +02:00
rsi for freq
This commit is contained in:
@ -17,8 +17,8 @@ test_that("rsi works", {
|
||||
"<NA>" = "0",
|
||||
"Sum S" = "1",
|
||||
"Sum IR" = "1",
|
||||
"Sum R" = "1",
|
||||
"Sum I" = "0"))
|
||||
"-Sum R" = "1",
|
||||
"-Sum I" = "0"))
|
||||
})
|
||||
|
||||
test_that("mic works", {
|
||||
|
@ -19,6 +19,8 @@ test_that("frequency table works", {
|
||||
expect_output(print(freq(septic_patients$hospital_id)))
|
||||
# table
|
||||
expect_output(print(freq(table(septic_patients$sex, septic_patients$age))))
|
||||
# rsi
|
||||
expect_output(print(freq(septic_patients$amcl)))
|
||||
|
||||
library(dplyr)
|
||||
expect_output(septic_patients %>% select(1:2) %>% freq() %>% print())
|
||||
|
Reference in New Issue
Block a user