ivlev: Ivlev's electivity (Ivlev 1961). Returns Ivlev's electivity...

Description Usage Arguments Examples

View source: R/selectivity.R

Description

Ivlev's electivity (Ivlev 1961). Returns Ivlev's electivity index from vectors of consumed and available food items.

Usage

1
ivlev(available, consumed, jacob = FALSE)

Arguments

available

A vector of food items available to the organism in the environment

consumed

A vector of food items consumed by the organism

jacob

Converts to Jacob's electivity index? Defaults to FALSE.

Examples

1
2
3
4
availableprey <- c(10,10,10,10,10)
consumedprey <- c(9,0,0,1,5)
ivlev(available = availableprey, consumed = consumedprey, jacob = FALSE)
ivlev(available = availableprey, consumed = consumedprey, jacob = TRUE)

selectapref documentation built on Feb. 9, 2020, 1:06 a.m.