powered by
Set-up state variables, parameters, input, and output times of the streambugs toy model. The model is ready to run with run.streambugs.
run.streambugs
streambugs.example.model.toy(n.Reaches = 3, n.Habitats = 2)
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
Number of reaches in the toy example
Number of habitats in the toy example
See "docs/Streambugs_syntax.pdf" file in the package installation folder: system.file("docs", "Streambugs_syntax.pdf", package="streambugs").
system.file("docs", "Streambugs_syntax.pdf", package="streambugs")
model <- streambugs.example.model.toy() # display values of the exponent "q" in the food limitation term; Note: model$par[grepl("(.*_)?q$", names(model$par))]
Run the code above in your browser using DataLab