Learn R Programming

nhdplusTools (version 0.3.8)

discover_nhdplus_id: Discover NHDPlus ID

Description

Multipurpose function to find a COMID of interest.

Usage

discover_nhdplus_id(point = NULL, nldi_feature = NULL)

Arguments

point

An sf POINT including crs as created by: sf::st_sfc(sf::st_point(..,..), crs)

nldi_feature

list with names `featureSource` and `featureID` where `featureSource` is derived from the "source" column of the response of discover_nldi_sources() and the `featureSource` is a known identifier from the specified `featureSource`.

Value

integer COMID

Examples

Run this code
# NOT RUN {
point <- sf::st_sfc(sf::st_point(c(-76.87479, 39.48233)), crs = 4326)
discover_nhdplus_id(point)

nldi_nwis <- list(featureSource = "nwissite", featureID = "USGS-08279500")
discover_nhdplus_id(nldi_feature = nldi_nwis)
# }

Run the code above in your browser using DataLab