iucn_index: iucn_index

Description Usage Arguments Value Author(s)

Description

Calculates a weighted average for IUCN's categories. It can calculate it as an absolute indes, or a relative index (0 to 1).

Usage

1
iucn_index(data, scores = c(1, 2, 3, 4, 5, 6, 7), type = "a")

Arguments

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))

Value

iucn_index (The IUCN index)

Author(s)

Juan, Patricia, Juan Carlos, Fish-ecol.github.io


fish-ecol/fish.ecol documentation built on May 16, 2019, 1:12 p.m.