Description Usage Arguments Value Examples
View source: R/link_to_waterbodies.R
Link geopoints to waterbodies in a geospatial dataset. Use the point-in-polygon technique with user-selectable polygon buffer size.
1 2 | link_to_waterbodies(lats, lons, ids, dataset = c("nhdh", "hydrolakes",
"nhdplusv2"), buffer = 0)
|
lats |
Vector of point latitudes |
lons |
Vector of point longitudes |
ids |
Vector of point identifiers (string or numeric) |
dataset |
Character name of dataset to link against. Can be either "nhdh", "hydrolakes", or "nhdplusv2" |
buffer |
Numeric width of polygon buffer in m |
Water body permanent IDs
1 2 3 4 5 6 7 | latlon = c(43.108728, -89.418293)
## Not run:
#returns linked waterbody site information for that lat/lon
link_to_waterbodies(latlon[1], latlon[2], 'id1', dataset = 'nhdh')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.