chesson_alpha {electivity} | R Documentation |
These two functions calculate the same value; alpha and W are identical.
chesson_alpha(r, p, na.rm = TRUE)
vs_select_coef(r, p, na.rm = TRUE)
r |
(Numeric) Resource utilisation. |
p |
(Numeric) Resource availability. |
na.rm |
(Logical) If 'TRUE', 'NA's will be ignored when calculating the selectivity coefficient (W). |
A numeric vector.
data(moth_distrib)
chesson_alpha(moth_distrib$r, moth_distrib$p)
vs_select_coef(moth_distrib$r, moth_distrib$p)