huc12_summary {rATTAINS} | R Documentation |
Download HUC12 Summary
Description
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.
Usage
huc12_summary(huc, tidy = TRUE, .unnest = TRUE, ...)
Arguments
huc |
(character) Specifies the 12-digit HUC to be summarized. required |
tidy |
(logical) |
.unnest |
(logical) |
... |
list of curl options passed to |
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.
Examples
## Not run:
## Return a list of tibbles with summary data about a single huc12
x <- huc12_summary(huc = "020700100204")
## Return as a JSON string
x <- huc12_summary(huc = "020700100204", tidy = TRUE)
## End(Not run)