deltaTime: Convert calendar date-time to the time difference comparing...

View source: R/deltaTime.R

deltaTimeR Documentation

Convert calendar date-time to the time difference comparing to the ICU admission time.

Description

Convert calendar date-time to the time difference comparing to the ICU admission time.

Usage

deltaTime(record, pseudotime = FALSE, units = "hours", tdiff = FALSE)

Arguments

record

ccRecord

pseudotime

logical If pseudotime is set to be TRUE, then the admission and discharge time will be set as the earliest and latest data stamp in the record.

units

units of delta time, which can be "hours", "mins", "days".

tdiff

if false the delta time will be written in numeric format.


CC-HIC/cleanEHR documentation built on Aug. 28, 2022, 10:33 a.m.