tip_reaches: Return tip reaches from a network

View source: R/network.R

tip_reachesR Documentation

Return tip reaches from a network

Description

A tip reach is a stream flowline with no upstream connections.

Usage

tip_reaches(network = NA)

Arguments

network

sf lines collection. optional. See Details section.

Value

An sf data frame with LINESTRING geometries

Examples

## Not run: 

coords  <- data.frame(lat = 41.42217, lon = -73.24189)
network <- nhd_plus_query(lon = coords$lon, lat = coords$lat,
  dsn = "NHDFlowline", buffer_dist = units::as_units(5, "km"))$sp$NHDFlowline
t_reaches <- tip_reaches(network = network)

plot(network$geometry)
plot(t_reaches$geometry, col = "red", add = TRUE)

## End(Not run)

nhdR documentation built on Aug. 12, 2023, 9:06 a.m.