powered by
Bounded between -1.0 (avoidance), 0 (random feeding), and +1.0 (preference).
vs_electivity(r, p, na.rm = TRUE)
(Numeric) Resource utilisation.
(Numeric) Resource availability.
(Logical) If TRUE, NAs will be ignored when calculating the selectivity coefficient (W).
TRUE
NA
A numeric vector.
# NOT RUN { data(moth_distrib) vs_electivity(moth_distrib$r, moth_distrib$p) # }
Run the code above in your browser using DataLab