View source: R/huc12_summary.R
huc12_summary | R Documentation |
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.
huc12_summary(huc, tidy = TRUE, .unnest = TRUE, ...)
huc |
(character) Specifies the 12-digit HUC to be summarized. required |
tidy |
(logical) |
.unnest |
(logical) |
... |
list of curl options passed to |
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.
See domain_values to search values that can be queried.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.