powered by
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)
vs_select_coef(r, p, na.rm = TRUE)
(Numeric) Resource utilisation.
(Numeric) Resource availability.
(Logical) If `TRUE`, `NA`s will be ignored when calculating the selectivity coefficient (W).
A numeric vector.
# NOT RUN { data(moth_distrib) chesson_alpha(moth_distrib$r, moth_distrib$p) vs_select_coef(moth_distrib$r, moth_distrib$p) # }
Run the code above in your browser using DataLab