- seg
A vector of river locations (segment component).
- vert
A vector of river locations (vertex component).
- rivers
The river network object to use.
- logical
A boolean vector that can be used for subsetting - if used,
riverdirectionseq() will only return pairwise distances in which a
specified condition is met.
- ID
a vector of observation IDs for aid in interpreting the output
table
- flowconnected
If TRUE, only returns distance if the input segments are flow-connected. Defaults to FALSE.
- net
Whether to calculate net upstream distance (net=TRUE) or total
distance (net=FALSE, default). See upstream.
- stopiferror
Whether or not to exit with an error if a route cannot be
found. If this is set to FALSE and a route cannot be found,
the function will return NA in the appropriate entry. Defaults to TRUE. See detectroute.
- algorithm
Which route detection algorithm to use ("Dijkstra",
"sequential", or "segroutes"). If left as NULL (the
default), the function will automatically make a selection. See
detectroute for more details.