Provides summary data for a 12-digit Hydrologic Unit Code (HUC12), based on Assessment Units in the HUC12. Watershed boundaries may cross state boundaries, so the service may return assessment units from multiple organizations. Returns the assessment units in the HUC12, size and percentages of assessment units considered Good, Unknown, or Impaired.
Arguments
- huc
(character) Specifies the 12-digit HUC to be summarized. required
- tidy
(logical)
TRUE
(default) the function returns a tidied tibble.FALSE
the function returns the raw JSON string.- .unnest
(logical)
TRUE
(default) the function attempts to unnest data to longest format possible. This defaults toTRUE
for backwards compatibility but it is suggested to useFALSE
.- ...
list of curl options passed to
crul::HttpClient()
Value
If tidy = FALSE
the raw JSON string is returned, else the JSON
data is parsed and returned as a list of tibbles that include a list of
seven tibbles.
Note
See domain_values to search values that can be queried.