strauss_linear {electivity} | R Documentation |
Strauss' linear index, L
Description
Bounded between -1.0 (avoidance), 0 (random feeding), and +1.0 (preference).
Usage
strauss_linear(r, p)
Arguments
r |
(Numeric) Resource utilisation. |
p |
(Numeric) Resource availability. |
Value
A numeric vector.
Examples
data(moth_distrib)
strauss_linear(moth_distrib$r, moth_distrib$p)
[Package electivity version 1.0.2 Index]