lenstay: Calculate the length of stay in the ICU.

Description Usage Arguments Value

Description

Calculate the length of stay in the ICU and append it to the original demographic table.

Usage

1
lenstay(demg, units = "hours")

Arguments

demg

data.table the demographic table which should at least contain column DAICU and DDICU

units

character The unit of lenstay column, by default the output will be in hours

Value

data.table It is the original data.table with lenstay column (in difftime) appended.


cleanEHR documentation built on May 2, 2019, 6:40 a.m.