construct.statevariables {streambugs} | R Documentation |
Construct the streambugs ODE state variable names
Description
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.
Usage
construct.statevariables(
Reaches,
Habitats,
POM = NULL,
Algae = NULL,
Invertebrates = NULL
)
Arguments
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 |
Value
vector with state variable names in the form of
"Reach_Habitat_Taxon_Group"
Examples
Reaches <- paste0("Reach",1:2)
Habitats <- paste0("Hab",1:1)
y.names <- construct.statevariables(Reaches,Habitats,Invertebrates=c("Baetis","Ecdyonurus"))