Skip to contents

Function used to get governmental unit for rivers listed in output of get_rivers from the built-in habitat data sets.

Usage

get_govt(river, species = c("ALE", "AMS", "BBH"), custom_habitat = NULL)

Arguments

river

Character string specifying river name.

species

Character string specifying species. Choices include American shad ("AMS"), alewife ("ALE"), and blueback herring ("BBH").

custom_habitat

A dataframe containing columns corresponding to the those in the output from custom_habitat_template. The default, NULL uses the default habitat data set for a given combination of species and river.

Value

A character string indicating governmental district corresponding to selected river.

Examples

get_govt(river = "Hudson", species = "AMS")
#> [1] "NJ"