vs_electivity {electivity}R Documentation

Vanderploeg and Scavia's relativised electivity, E*

Description

Bounded between -1.0 (avoidance), 0 (random feeding), and +1.0 (preference).

Usage

vs_electivity(r, p, na.rm = TRUE)

Arguments

r

(Numeric) Resource utilisation.

p

(Numeric) Resource availability.

na.rm

(Logical) If TRUE, NAs will be ignored when calculating the selectivity coefficient (W).

Value

A numeric vector.

Examples

data(moth_distrib)
vs_electivity(moth_distrib$r, moth_distrib$p)


[Package electivity version 1.0.2 Index]