powered by
Wrap cor.test (test of liner correlation).
# S3 method for data.frame wrapCorTest( x, Column1Name, Column2Name, ..., alternative = c("two.sided", "less", "greater"), method = c("pearson", "kendall", "spearman"), exact = NULL, conf.level = 0.95, continuity = FALSE, na.rm = FALSE )
wrapped stat
data.frame
character column 1 name
character column 2 name
extra arguments passed to cor.test
passed to cor.test
cor.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)) wrapCorTest(d,'x','y')
Run the code above in your browser using DataLab