powered by
Wrap t.test (difference in means by group).
# S3 method for data.frame wrapTTest( x, Column1Name, Column2Name, ..., y = NULL, alternative = c("two.sided", "less", "greater"), mu = 0, paired = FALSE, var.equal = FALSE, conf.level = 0.95, na.rm = FALSE )
formatted string and fields
data.frame
character column 1 name
character column 2 name
extra arguments passed to ttest
passed to t.test
t.test
logical, if TRUE remove NA values
d <- data.frame(x=c(1,2,3,4,5,6,7,7), y=c(1,1,2,2,3,3,4,4)) render(wrapTTest(d,'x','y'),pLargeCutoff=1) # confirm p not order depedent render(wrapTTest(d,'y','x'),pLargeCutoff=1)
Run the code above in your browser using DataLab