ivlev {selectapref}R Documentation

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

Description

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

Usage

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

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)


[Package selectapref version 0.1.2 Index]