Description Usage Arguments Details Value Examples
calc_perc_time calculates percent time above / below a threshold
| 1 | calc_perc_time(cont.data, thrshld, meds = TRUE)
 | 
| cont.data | A data frame with serial measurement data | 
| thrshld | A list of the criteria | 
| meds | An optional logical indicating whether the data contains serial medication adminstration or laboratory data, defaults to TRUE | 
This function takes a data frame with serial measurement data and produces a data frame with percent time above or below a threshold for each infusion.
A data frame
| 1 2 3 4 5 | ## Not run: 
calc_perc_time(data, list(~med.rate > 0.4))
# calculates the proportion of time where the rate is above 0.4
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.