Returns which segments are connected to a specified segment within a river network. It may be useful for error checking.
whoconnected(seg, rivers)
seg | The segment to check |
---|---|
rivers | The river network object it belongs to |
A vector of segment numbers
data(Gulk) plot(Gulk)whoconnected(seg=4, rivers=Gulk)#> [1] 1 3 9 10