View source: R/QuantitativeDemographicsGroup.R
QuantitativeDemographicsGroup | R Documentation |
Calculates mean, st.dev, median, IQR, min, and max on a vector of variables per group
QuantitativeDemographicsGroup( data, id_var = "MRN", group_var = "CMD", sum_vars )
data |
the input data |
id_var |
the row identifier variable–ensures one row per observation |
group_var |
the grouping variable |
sum_vars |
the variables to perform calculations on |
out <- QuantitativeDemographicsGroup(data, id_var="MRN", group_var="CMD", 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.