Description Usage Arguments Details Value
assignCatchments
Assigns a catchment to a site with a set of lat/lon points.
1 | assignCatchments(sites, catchmentShapefile, catchmentID, projectionString)
|
sites |
dataframe containing 3 columns in specified order: 1)SiteID 2)Longitude 3)Latitude |
catchmentShapefile |
SpatialPolygonsDataframe of the catchment shapefile over which the points will be matched |
catchmentID |
a character vector of column name describing the catchment identifier in the shapefile (e.g. "FEATUREID" for NHDplusV2) |
projectionString |
a CRS string of the spatial data projection of the shapefile and site coordinates |
This function uses a spatial overlay to assign catchment IDs to sites with associated lat/lon points. If a point does not match any catchment, NA is returned
Returns the input dataframe with the catchment ID appended (column 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.