Description Usage Arguments Details Value
calc_runtime
calculates the time at current rate and time from start
1 | calc_runtime(cont.data, drip.off = 12, no.doc = 24, units = "hours")
|
cont.data |
A data frame with continuous medication rate data |
drip.off |
An optional numeric indicating the number of hours a drip should be off to count as a new infusion, defaults to 12 hours |
no.doc |
An optional numeric indicating the number of hours without documentation which will be used to indicate a drip has ended, defaults to 24 hours |
units |
An optional character string specifying the time units to use in calculations, default is hours |
This function takes a data frame with continuous medication rate data and produces a data frame with the time at each rate and the time from start for each row. This could be used to then calculate the AUC or to summarize the continuous data. The data will be grouped into distinct sets of infusions, for patients who may have been restarted on the drip one or more times.
A data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.