Learn R Programming

autostats (version 0.4.2)

auto_t_test: auto t test

Description

Performs a t.test on 2 populations for numeric variables.

Usage

auto_t_test(data, col, ..., var_equal = FALSE, abbrv = TRUE)

Value

dataframe

Arguments

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

Examples

Run this code


iris %>%
 dplyr::filter(Species != "setosa") %>%
 auto_t_test(col = Species)

Run the code above in your browser using DataLab