eatfoodsteps: eatfoodsteps

Description Usage Arguments Value

View source: R/eatfood.R

Description

Wrapper function to interate 'eatfoodonce' across multiple time steps (for a sinlge individual). Returns a matrix of C and N values sampled by the individual over 'steps' number of steps.

Usage

1
eatfoodsteps(steps, num_sources, diet_prop, food)

Arguments

steps

Integer, the number of time steps to simulate

num_sources

integer, the number of food sources to choose from. Can not exceed the actual number of available food sources. Passed to 'eatfoodonce'.

diet_prop

vector, the relative probability of selecting a source. Must have an entry for each source. Passed to 'eatfoodonce'.

food

list, the simulated food sources from which to select. Passed to 'eatfoodonce'.

Value

A list of consumer-sampled prey isotope values. Each element of the list is a step containing the C and N values for the prey item sampled.


syanco/checkyourself documentation built on Jan. 18, 2021, 4:50 a.m.