assignHUCs | R Documentation |
This function assigns HUC 8 & 12 values to water quality portal type site objects (or data with site information attached).
assignHUCs(data, lat = "LatitudeMeasure", long = "LongitudeMeasure")
data |
Input dataset. Must include latitude & longitude columns. |
lat |
Name of latitude column. Default matches WQP objects. |
long |
Name of longitude column. Default matches WQP objects. |
Returns the input data frame with HUC 8 & 12 information appended.
# Read a couple of sites from Mantua Reservoir
sites=readWQP(type="sites", siteid=c("UTAHDWQ_WQX-4900440","UTAHDWQ_WQX-4900470"))
sites_HUCs=assignHUCs(sites)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.