streambugs.example.model.toy {streambugs}R Documentation

Set-up the streambugs toy model

Description

Set-up state variables, parameters, input, and output times of the streambugs toy model. The model is ready to run with run.streambugs.

Usage

streambugs.example.model.toy(n.Reaches = 3, n.Habitats = 2)

Arguments

n.Reaches

Number of reaches in the toy example

n.Habitats

Number of habitats in the toy example

Value

List with:

$name

name of the example

$y.names

list with names of state variables as returned by the decode.statevarnames function

$times, $par, $inp:

corresponding input parameters of the run.streambugs function

Model syntax

See "docs/Streambugs_syntax.pdf" file in the package installation folder: system.file("docs", "Streambugs_syntax.pdf", package="streambugs").

Examples

model <- streambugs.example.model.toy()
# display values of the exponent "q" in the food limitation term; Note:
model$par[grepl("(.*_)?q$", names(model$par))]


[Package streambugs version 1.4 Index]