removeunconnected: Remove Unconnected Segments

Description Usage Arguments Note Author(s) Examples

View source: R/riverdist_1.R

Description

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

Usage

1

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

1
2
3
4
5
6
7
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)

riverdist documentation built on Sept. 10, 2021, 9:06 a.m.