Ecological.Indices | R Documentation |
This function calculates various ecological indices based on the provided nematode genus abundance data. It supports a range of indices, including taxonomic diversity, Shannon diversity index, Pielou's evenness index, Simpson's index, and more. Users can specify which indices to calculate or use the default option to calculate all supported indices.
Ecological.Indices(
data,
indices = "All",
total.abundance = NULL,
method = NULL,
...
)
## S3 method for class 'data.frame'
Ecological.Indices(
data,
indices = "All",
total.abundance = NULL,
method = NULL,
...
)
## S3 method for class 'matrix'
Ecological.Indices(
data,
indices = "All",
total.abundance = NULL,
method = NULL,
...
)
## Default S3 method:
Ecological.Indices(
data,
indices = "All",
total.abundance = NULL,
method = NULL,
...
)
data |
|
indices |
A character vector specifying the ecological indices to be calculated. The following indices are supported:
Additionally, specifying |
total.abundance |
A data.frame containing abundance information for the samples. It must match the row names of the input data.
Default is |
method |
The method to use for calculating the Species Richness Index. Default is
|
... |
Additional arguments (currently unused). |
A data frame containing the calculated indices. The data frame includes a Sample.ID
column and additional columns for each requested index.
# 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")
)
Ecological.Indices(data = df, indices = "All", total.abundance = abundance, method = "Menhinick")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.