Description Usage Arguments Value
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.
1 2 3 | add_weight(x, env, weight_var = "weight")
calc_dur(x, val_var, min_var, max_var, grp_var = NULL)
|
x |
Object in loading |
env |
Data source environment as available as |
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) |
An id_tbl
or ts_tbl
object, potentially modified by reference.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.