This function performs the Fisher test

fisher.test(matrix)

Arguments

matrix

Matrix of data

Value

A list with pvalues for alternative hypothesis, statistics, method and data name

Examples

fisher.test(matrix(c(10,4,2,7), ncol=2))
#> $data.name #> [1] "matrix(c(10, 4, 2, 7), ncol = 2)" #> #> $statistic #> Q #> 5.315777 #> #> $p.value #> Exact Left p-value Exact Right p-value Asymtotic p-value #> 0.02914255 0.99750976 0.97886683 #> #> $method #> [1] "Fisher" #>