Description Usage Arguments Details Value Examples
lab_change
checks for changes in lab values
1 | lab_change(x, .lab, change.by, FUN, back = 2)
|
x |
A data frame with lab data |
.lab |
A character string indicating the name of the lab to evaluate |
change.by |
A numeric indicating the threshold for lab changes |
FUN |
A function for |
back |
An optional numeric specifying the number of days back to go. Defaults to 2 days. |
This function takes a data frame with lab data for a single lab and checks whether the lab changes by a certain amount within a given period of time.
For FUN, use max when looking for a decrease in lab value, and min when looking for an increase in lab value.
A data frame
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.