View source: R/streambugs_examples.r
streambugs.example.model.toy | R Documentation |
Set-up state variables, parameters, input, and output times of the
streambugs toy model. The model is ready to run with
run.streambugs
.
streambugs.example.model.toy(n.Reaches = 3, n.Habitats = 2)
n.Reaches |
Number of reaches in the toy example |
n.Habitats |
Number of habitats in the toy example |
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
See "docs/Streambugs_syntax.pdf" file in the package installation folder:
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))]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.