Learn R Programming

riverdist (version 0.17.0)

removeunconnected: Remove Unconnected Segments

Description

Detects and removes segments that are not connected to the river mouth.

Usage

removeunconnected(rivers)

Arguments

rivers

The river network object to use.

Author

Matt Tyers

Examples

Run this code
data(Koyukuk2)
Koy_subset <- trimriver(trimto=c(30,28,29,3,19,27,4),rivers=Koyukuk2)
Koy_subset <- setmouth(seg=1,vert=427,rivers=Koy_subset)
plot(Koy_subset)

Koy_subset_trim <- removeunconnected(Koy_subset)
plot(Koy_subset_trim)

Run the code above in your browser using DataLab