Learn R Programming

riverdist (version 0.17.0)

routelist: Detect Multiple Routes

Description

Called internally within riverdistancelist. Detects all possible routes from one river network segment to another, in the event of braiding.

Usage

routelist(startseg, endseg, rivers, reps = 100)

Value

A list of vectors, each describing a route in segment numbers.

Arguments

startseg

Segment number of the start of the route

endseg

Segment number of the end of the route

rivers

The river network object to use

reps

Deprecated. Was used in a previous version using randomization.

Author

Matt Tyers

Examples

Run this code
data(KilleyW)
plot(x=KilleyW)

routelist(startseg=1, endseg=16, rivers=KilleyW)

Run the code above in your browser using DataLab