ivlev_electivity {electivity} | R Documentation |
Ivlev's electivity, E
Description
Bounded between -1.0 (avoidance), 0 (random feeding), and +1.0 (preference).
Usage
ivlev_electivity(r, p)
Arguments
r |
(Numeric) Resource utilisation. |
p |
(Numeric) Resource availability. |
Value
A numeric vector.
Source
Lechowicz, M.J., 1982. The sampling characteristics of electivity indices. Oecologia 52, 22–30. https://doi.org/10.1007/BF00349007
Examples
data(moth_distrib)
ivlev_electivity(moth_distrib$r, moth_distrib$p)
[Package electivity version 1.0.2 Index]