Learn R Programming

riverdist (version 0.17.0)

whoconnected: Check Which Segments are Connected to a Given Segment.

Description

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

Usage

whoconnected(seg, rivers)

Value

A vector of segment numbers

Arguments

seg

The segment to check

rivers

The river network object it belongs to

Author

Matt Tyers

Examples

Run this code
data(Gulk)
plot(Gulk)
whoconnected(seg=4, rivers=Gulk)

Run the code above in your browser using DataLab