get_rivers | R Documentation |
Get names of rivers included in package for each species.
get_rivers(species = c("ALE", "AMS", "BBH"))
species |
Species for which rivers are returned
Choices include American shad ( |
The primary uses of this function are (1) so the user can see rivers that can be used for simulation, and (2) so the output can be passed to a random sampler for use in stochastic simulation via parallel processing.
A character vector of rivers that are included in
built-in habitat datasets for selected species
.
# Example usage
## Not run:
# Use get_rivers() to return names of rivers included in package
get_rivers(anadrofish::habitat)
# Sample a random river from those available
get_rivers(anadrofish::habitat)[sample(length(get_rivers(anadrofish::habitat)), 1)]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.