prey_preference: Calculate preference between two prey resources.

Description Usage Arguments Details Value Examples

View source: R/prey_preference.R

Description

Calculate preference between two prey resources.

Usage

1
prey_preference(e1, e2, N1, N2)

Arguments

e1

Conversion efficiency for prey resource 1. Most often this ebp, or the efficiency of turning B biomass into new P biomass.

e2

Conversion efficiency for prey resource 2. Most often this ecp, or the efficiency of turning C biomass into new P biomass.

N1

The population abundance of prey resource 1. Usually this is prey B

N2

The population abundance of prey resource 2. Usually this is prey C

Details

The preference of prey resource 1 over prey resource 2. Values < 0.5 indicate the resource 2 is preferred, value > 0.5 indicate resource 1 is preferred.

Preference is calculated as e1*N1 / (e1*N1 + e2*N2)

Value

value between 0 and 1

Examples

1
prey_preference(e1 = 2, e2 = 1, N1 = 100, N2 = 50)

Jpomz/IGPtoy documentation built on Aug. 2, 2021, 5:28 a.m.