extract_bp | R Documentation |
Separates SBP and DBP from a string of blood pressure readings, and returns it as a dataframe. Mean arterial pressure is added unless default 'meanBP' option changed.
extract_bp(text, meanBP = TRUE, digits = 3)
text |
A string containing blood pressure readings |
meanBP |
if FALSE, does not return calculated MAP |
digits |
Desired number of signficant digits, default=3 |
A dataframe containing SBP, DBP and MAP
bpreadings <- c("120/80", "90/50", "220/40")
bpreadings2 <- c("120 / 80", "90 / 50", "220 / 40")
extract_bp(bpreadings)
extract_bp(bpreadings2)
extract_bp(bpreadings2, meanBP = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.