Learn R Programming

streambugs (version 1.4)

count.feeding.links: Count feeding links between taxa in streambugs ODE.

Description

Count number of global "Cons" stoichiometric interactions (feeding links) between streambugs ODE state variables (taxa) in all habitats.

Usage

count.feeding.links(y.names, par)

Value

Integer number of feeding links, which is a number of feeding links in a single habitat times number of habitats and number of reaches.

Arguments

y.names

same as y.names in run.streambugs

par

same as par in run.streambugs

Examples

Run this code
m <- streambugs.example.model.toy()
count.feeding.links(m$y.names, m$par)

# feeding links count does not change w/ number of habitats (nor reaches)
m <- streambugs.example.model.toy(n.Habitats=10)
count.feeding.links(m$y.names, m$par)

Run the code above in your browser using DataLab