Learn R Programming

electivity (version 1.0.2)

jacob_forage: Jacob's modified forage ratio, Q

Description

When logged (which is Jacob's recommendation), bounded between negative and positive infinity.

Usage

jacob_forage(r, p, log10 = FALSE)

Arguments

r

(Numeric) Resource utilisation.

p

(Numeric) Resource availability.

log10

(Logical) If TRUE, return the value as Log10.

Value

A numeric vector.

Examples

Run this code
# NOT RUN {
data(moth_distrib)
jacob_forage(moth_distrib$r, moth_distrib$p, log10 = TRUE)
jacob_forage(moth_distrib$r, moth_distrib$p, log10 = FALSE)
# }

Run the code above in your browser using DataLab