simplify_network: Simplify network

View source: R/avg_link_length.R

simplify_networkR Documentation

Simplify network

Description

Combine(dissolve) adjacent reaches with no junctions

Usage

simplify_network(lines)

Arguments

lines

sf data.frame composed of LINESTRING objects

Examples

## Not run: 
data(nhd_sub_lines)
res <- simplify_network(nhd_sub_lines)

# single line returns the original
res <- simplify_network(nhd_sub_lines[1,])


## End(Not run)

jsta/streamnet documentation built on July 9, 2022, 9:02 p.m.