View source: R/ec_cooccurrence.R
ec_cooc | R Documentation |
Cooccurrence analysis.
ec_cooc(x, ...)
## S3 method for class 'pa'
ec_cooc(x, ...)
## S3 method for class 'cooc_count'
ec_cooc(x, nsit, ...)
ec_cooc_pairwise(x, ...)
## S3 method for class 'pa'
ec_cooc_pairwise(x, ...)
## S3 method for class 'cooc_count'
ec_cooc_pairwise(x, nsit, ...)
ec_cooc_species(x, ...)
## S3 method for class 'pa'
ec_cooc_species(x, ...)
## S3 method for class 'cooc_count'
ec_cooc_species(x, nsit, ...)
ec_cooc_global(x, ...)
## S3 method for class 'pa'
ec_cooc_global(x, ...)
## S3 method for class 'cooc_count'
ec_cooc_global(x, nsit, ...)
x |
object to be converted into an object class |
... |
ignored. |
nsit |
number of sites. |
ec_cooc_pairwise()
: Return a matrix of cooccurrence metrics for pair of species.
ec_cooc_species()
: Return a matrix of cooccurrence metrics for species.
ec_cooc_global()
: Return a matrix of cooccurrence metrics for species.
mat0 <- matrix(0, 10, 10)
mat1 <- matrix(1, 10, 10)
matU <- rbind(cbind(mat1, mat0), cbind(mat0, mat1))
ec_cooc(ec_as_pa(matU))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.