samp_cond_medians_iqr | R Documentation |
Create Sample conditional means and standard deviation
samp_cond_medians_iqr(x, g, na.rm = TRUE, fix_iqr = TRUE)
x |
the numeric/integer/double vector of values |
g |
the factor or character vector to group values by |
na.rm |
should |
a matrix object, containing median and IQR on two columns, and group names in rows
data("gss_cat") age_by_marital_status <- samp_cond_medians_IQR(gss_cat$age, g = gss_cat$marital) age_by_marital_status
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.