removeunconnected {riverdist} | R Documentation |
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. |
Note
This function is called within cleanup, which is recommended in most cases.
Author(s)
Matt Tyers
Examples
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)
[Package riverdist version 0.16.3 Index]