View source: R/compare_groups.R
compare_groups | R Documentation |
For each numeric variable in a data frame, computes number of observations, mean, and standard deviation, for each group, and t- and p-values for the t-test comparing the groups.
compare_groups(dat, Group)
dat |
data frame |
Group |
string name of grouping variable |
Returns a data frame with rows for each numeric variable in the input data frame (plus N, for number of observations) and columns for mean, SD, t-value, and p-value.
compare_groups(SND, "SemNear_Cond")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.