Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

callback_int

Internal item callback utilities


Description

The utility function add_weight() is exported for convenience when adding external datasets and integrating concepts such as vasopressor rates which rely on patient weight. For this to function, the newly added dataset must offer a weight concept. For performance reasons, the weight concept is internally cached, as this might be used unchanged many times, when loading several concepts that need to pull in patient weight data.

Usage

add_weight(x, env, weight_var = "weight")

calc_dur(x, val_var, min_var, max_var, grp_var = NULL)

Arguments

x

Object in loading

env

Data source environment as available as env in callback functions

weight_var

String valued name of the newly added weight column

val_var

String valued column name corresponding to the value variable

min_var, max_var

Column names denoting start and end times

grp_var

Optional grouping variable (for example linking infusions)

Value

An id_tbl or ts_tbl object, potentially modified by reference.


ricu

Intensive Care Unit Data with R

v0.1.3
GPL-3
Authors
Nicolas Bennett [aut, cre], Drago Plecko [aut], Ida-Fong Ukor [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.