View source: R/QuantitativeDemographics.R
QuantitativeDemographics | R Documentation |
Calculates mean, st.dev, median, IQR, min, and max on a vector of variables.
QuantitativeDemographics(data, id_var, sum_vars)
data |
the input data |
id_var |
the row identifier variable–ensures one row per observation |
sum_vars |
the variables to perform calculations on |
out <- QuantitativeDemographics(data, id_var="MRN", sum_vars=c("Age", "Admission_GCS", "GOSE")) print(out$Age)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.