ivlev_forage {electivity}R Documentation

Ivlev's forage ratio, E'

Description

Bounded between +0.1 (avoidance), +1.0 (random feeding), and infinity (preference).

Usage

ivlev_forage(r, p, log10 = FALSE)

Arguments

r

(Numeric) Resource utilisation.

p

(Numeric) Resource availability.

log10

(Logical) If TRUE, transform the value with log10().

Value

A numeric vector.

Examples

data(moth_distrib)
ivlev_forage(moth_distrib$r, moth_distrib$p, log10 = FALSE)
ivlev_forage(moth_distrib$r, moth_distrib$p, log10 = TRUE)


[Package electivity version 1.0.2 Index]