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

Description Usage Arguments

View source: R/deltaTime.R

Description

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

Usage

1
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.


ropensci/cleanEHR documentation built on Sept. 6, 2018, 1:52 a.m.