View source: R/nice_diff_means.R
nice_diff_means | R Documentation |
Calculates a difference in means between two groups
nice_diff_means(data, var, by)
data |
A data frame |
var |
A numeric variable containing the data for the calculation of the means |
by |
A grouping variable with only two values |
A numeric value for the difference in means
data(sleep) sleep$group <- as.numeric(sleep$group) nice_diff_means(data = sleep, var = "extra", by = "group")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.