Description Usage Arguments Value Author(s) Examples
Given a community matrix, the function give out a vector with the prevalence of each species in the data.
1 | spPrevalence(commMatrix, relative=TRUE)
|
commMatrix |
Matrix. Community matrix (species by sites) with binary (presence/absence) data. |
relative |
Logical value. This value indicate if the prevalence should be absolute (number of presences) or relative (percentage of presences). |
The output is a vector with one element for each species in the community matrix (commMatrix). It can be total prevalence or relative prevalence of each species.
Diego Nieto Lugilde
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.