test_diversity | R Documentation |
Compares Shannon diversity between samples.
test_diversity(object, ...)
## S4 method for signature 'matrix'
test_diversity(object, adjust = "holm", ...)
## S4 method for signature 'data.frame'
test_diversity(object, adjust = "holm", ...)
object |
A |
... |
Further arguments to be passed to internal methods. |
adjust |
A |
This test produces two sided pairwise comparisons: it returns a matrix of
adjusted p
values.
A numeric
matrix
.
N. Frerebeau
Magurran, A. E. (1988). Ecological Diversity and its Measurement. Princeton, NJ: Princeton University Press. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/978-94-015-7358-0")}.
## Data from Conkey 1980, Kintigh 1989
data("cantabria")
## Shannon diversity test
test_diversity(cantabria)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.