auto_t_test | R Documentation |
Performs a t.test on 2 populations for numeric variables.
auto_t_test(data, col, ..., var_equal = FALSE, abbrv = TRUE)
data |
dataframe |
col |
a column with 2 categories representing the 2 populations |
... |
numeric variables to perform t.test on. Default is to select all numeric variables |
var_equal |
default FALSE; t.test parameter |
abbrv |
default TRUE; remove some extra columns from output |
dataframe
iris %>% dplyr::filter(Species != "setosa") %>% auto_t_test(col = Species)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.