View source: R/apps_of_direction.R
isflowconnected | R Documentation |
Checks to see if two segments are flow-connected. Called internally within riverdirection and upstream.
isflowconnected(seg1, seg2, rivers, stopiferror = TRUE, algorithm = NULL)
seg1 |
First input segment |
seg2 |
Second input segment |
rivers |
The river network object to use |
stopiferror |
Whether or not to exit with an error if a route cannot be
found. If this is set to |
algorithm |
Which route detection algorithm to use ( |
Logical TRUE
if the two segments are flow-connected, FALSE
if they are not
The river mouth must be specified (see setmouth).
Matt Tyers
data(Gulk)
plot(Gulk)
Gulk <- setmouth(seg=1, vert=1, rivers=Gulk)
isflowconnected(seg1=13, seg2=14, rivers=Gulk)
isflowconnected(seg1=13, seg2=1, rivers=Gulk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.