Returns which segments are connected to a specified segment within a river network. It may be useful for error checking.

whoconnected(seg, rivers)

Arguments

seg

The segment to check

rivers

The river network object it belongs to

Value

A vector of segment numbers

Examples

data(Gulk) plot(Gulk)
whoconnected(seg=4, rivers=Gulk)
#> [1] 1 3 9 10