Description Usage Arguments Value Author(s)
Calculates a weighted average for IUCN's categories. It can calculate it as an absolute indes, or a relative index (0 to 1).
1 | iucn_index(data, scores = c(1, 2, 3, 4, 5, 6, 7), type = "a")
|
data |
(vector of categories by country. Acceptable formats for categories are: "DD", "LC", "LR/nt", "NT", "VU", "EN", "CR") |
scores |
(vector of scores to weight each category. Default is c(1,2,3,4,5,6,7)) |
type |
(type of index to use. String "a" uses a weighted average. String "b" uses a relative score (1 = highest possible value, when all species ar CR)) |
iucn_index (The IUCN index)
Juan, Patricia, Juan Carlos, Fish-ecol.github.io
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.