1
0
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:
2018-08-01 22:37:28 +02:00
parent d8f70a74de
commit edd2dd09dc
8 changed files with 30 additions and 44 deletions

View File

@ -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", {

View File

@ -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())