View source: R/mobr_boxplots.R
calc_div | R Documentation |
Compute various diversity indices from a vector of species abundances (i.e., one row of a community matrix)
calc_div(
x,
index,
effort = NA,
rare_thres = 0.05,
PIE_replace = FALSE,
C_target = NULL,
extrapolate = TRUE,
...
)
x |
is a vector of species abundances |
index |
The calculated biodiversity indices. The options are
See Details for additional information on the biodiversity statistics. |
effort |
The standardized number of individuals used for the calculation of rarefied species richness. This must be a single integer. |
rare_thres |
The threshold that determines how the metric
|
PIE_replace |
Used for |
C_target |
When computing coverage based richness ( |
extrapolate |
Boolean which specifies if richness should be extrapolated when effort is larger than the number of individuals using the chao1 method (Chao 1984, 1987). Defaults to TRUE. |
... |
additional arguments that can be passed to the function
|
data(inv_tank)
calc_div(tank_comm[1, ], 'S_n', effort = c(5, 10))
calc_div(tank_comm[1, ], 'S_C', C_target = 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.