View source: R/streambugs_aux.r
construct.statevariables | R Documentation |
Construct encoded labels of streambugs ODE state variable names from reach names, habitat names, and "taxa" names for at least one of the POM, Algae, or Invertebrates groups.
construct.statevariables( Reaches, Habitats, POM = NULL, Algae = NULL, Invertebrates = NULL )
Reaches |
reach names character vector; duplicates are dropped |
Habitats |
habitats names character vector; duplicates are dropped |
POM |
optional ("taxa") character vector of POM (particulate organic matter) group; duplicates are dropped (note: at least one "taxon" name out of all groups has to be given) |
Algae |
optional taxa character vector of Algae group; duplicates are dropped (note: at least one taxon name out of all groups has to be given) |
Invertebrates |
optional taxa character vector of Invertebrates group duplicates are dropped (note: at least one taxon name out of all groups has |
vector with state variable names in the form of
"Reach_Habitat_Taxon_Group"
Reaches <- paste0("Reach",1:2) Habitats <- paste0("Hab",1:1) y.names <- construct.statevariables(Reaches,Habitats,Invertebrates=c("Baetis","Ecdyonurus"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.