Learn R Programming

riverdist (version 0.16.3)

removemicrosegs: Remove Segments that are Smaller than the Connectivity Tolerance

Description

Automatically detects and removes segments with total displacement (straight-line distance between endpoints) less than the connectivity tolerance. These segments do not serve any real purpose, are bypassed in routes, and cannot be dissolved.

Usage

removemicrosegs(rivers)

Value

A new river network object with the specified segments connected (see rivernetwork)

Arguments

rivers

The river network object to use.

Author

Matt Tyers

See Also

line2network

Examples

Run this code
data(abstreams0)
abstreams1 <- removemicrosegs(abstreams0)

Run the code above in your browser using DataLab