powered by
Wrap fisher.test (test of categorical independence).
# S3 method for data.frame wrapFisherTest( x, Column1Name, Column2Name, ..., na.rm = FALSE, workspace = 2e+05, hybrid = FALSE, control = list(), or = 1, alternative = "two.sided", conf.int = TRUE, conf.level = 0.95, simulate.p.value = FALSE, B = 2000 )
wrapped test.
data.frame
character column 1 name
character column 2 name
extra arguments (not used)
logical, if TRUE remove NA values
passed to fisher.test
fisher.test
d <- data.frame(x=c('b','a','a','a','b','b','b'), y=c('1','1','1','2','2','2','2')) wrapFisherTest(d, 'x', 'y')
Run the code above in your browser using DataLab