cal.SRI | R Documentation |
This function calculates the Species Richness Index (SRI) for ecological communities.
cal.SRI(data, total.abundance, method = "Margalef", ...)
## S3 method for class 'data.frame'
cal.SRI(data, total.abundance, method = "Margalef", ...)
## S3 method for class 'matrix'
cal.SRI(data, total.abundance, method = "Margalef", ...)
## Default S3 method:
cal.SRI(data, total.abundance, method = "Margalef", ...)
data |
|
total.abundance |
|
method |
The method used to calculate the Species Richness Index. Default is
|
... |
Additional arguments (currently unused). |
A data frame with two columns:
Sample.ID |
Character vector of sample identifiers (from row names of |
SRI |
Species Richness Index for each sample |
# Example with a data frame
df <- data.frame(
Cephalobus = c(10, NA, 15),
Caenorhabditis = c(5, 10, NA),
Pratylenchus = c(8, 12, 10),
row.names = c("A", "B", "C")
)
abundance <- data.frame(
abundance = c(100, 150, 120),
row.names = c("A", "B", "C")
)
cal.SRI(data = df, total.abundance = abundance, method = "Margalef")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.