Skip to contents

This function takes a HUC Name and returns matching HUC 12 IDs. The default behavior is to select all possible matching IDs without matching the case of the string. If an exact match is required, use the exact argument.

Usage

nsink_get_huc_id(huc_name, exact = FALSE)

Arguments

huc_name

Character string of a HUC Name or partial HUC name

exact

Logical indicating whether or not to do an exact match

Value

A data frame with HUC_12 and HU_12_NAME that match the huc_name

Examples

nsink_get_huc_id(huc_name = "Niantic River")
#> # A tibble: 1 × 3
#>   huc_12       huc_12_name   state
#>   <chr>        <chr>         <chr>
#> 1 011000030304 Niantic River CT