get_wb_outlet: Get Waterbody Outlet

View source: R/plot_nhdplus.R

get_wb_outletR Documentation

Get Waterbody Outlet

Description

Get Waterbody Outlet

Usage

get_wb_outlet(lake_id, network)

Arguments

lake_id

integer COMID (or character permanent identifier for hi res) of lake.

network

data.frame of network features containing wbareacomi, and Hydroseq

Value

sf data.frame with single record of network COMID associated with most-downstream reach in the NHD Waterbody

Examples



source(system.file("extdata/sample_data.R", package = "nhdplusTools"))

fline <- sf::read_sf(sample_data, "NHDFlowline_Network")
wtbdy <- sf::read_sf(sample_data, "NHDWaterbody")

lake_COMID <- wtbdy$COMID[wtbdy$GNIS_NAME=='Lake Mendota 254']

get_wb_outlet(13293262, fline)



nhdplusTools documentation built on June 22, 2024, 10:36 a.m.