tt <- t.test(rnorm(10))
tidy(tt)
glance(tt) # same output for all htests
tt <- t.test(mpg ~ am, data = mtcars)
tidy(tt)
wt <- wilcox.test(mpg ~ am, data = mtcars)
tidy(wt)
ct <- cor.test(mtcars$wt, mtcars$mpg)
tidy(ct)
Run the code above in your browser using DataLab