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

View source: R/streambugs_aux.r

count.feeding.linksR Documentation

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)

Arguments

y.names

same as y.names in run.streambugs

par

same as par in run.streambugs

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.

Examples

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)


streambugs documentation built on Feb. 16, 2023, 9:48 p.m.