View source: R/samp_cond_means_sd.R
| samp_cond_means_sd | R Documentation | 
Create Sample conditional means and standard deviation
samp_cond_means_sd(x, g, na.rm = TRUE, fix_sd = 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 mean and standard deviation on two columns, and group names in rows
data("gss_cat")
age_by_marital_status <- samp_cond_means_sd(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.