getHUC: Return HUCs at Specified Locations

Description Usage Arguments Value See Also

Description

Uses spatial comparison to determine which HUC polygons the locations fall into and returns the HUC identifier strings for those polygons.

If allData=TRUE, additional data is returned.

Usage

1
getHUC(lon, lat, SPDF, HUCs = NULL, allData = FALSE)

Arguments

lon

vector of longitudes in decimal degrees

lat

vector of latitudes in decimal degrees

SPDF

spatial polygons dataset of HUCs

HUCs

vector of Hydrologic Unit Codes

allData

logical specifying whether to return a full dataframe

Value

Vector of HUC identifiers.

See Also

getSpatialData



Search within the MazamaSpatialUtils package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.