adjacentreaches.rivernet {rivernet} | R Documentation |
Finds Regions of Adjacent Reaches
Description
Finds regions of adjacent reaches that fulfill given criteria.
Usage
## S3 method for class 'rivernet'
adjacentreaches(x,crit.reach,crit.node=TRUE,thresh.length=0,...)
Arguments
x |
Object of class "rivernet" e.g. read by the function |
crit.reach |
Logical vector of the same length as the number of reaches. Indicating whether the criterion for reaches is fulfilled. A single value of |
crit.node |
Logical vector of the same length as the number of nodes. Indicating whether the criterion for nodes is fulfilled. A single value of |
thresh.length |
Threshold length above which not fulfillment of the criterion separates reaches as not being adjacent. |
... |
. |
Value
Numerical vector of the same length as the number of reaches in the river network with unique numbering corresponding to regions of adjacent reaches (under the conditions specified by crit.reach
, crit.node
and thresh.length
). The segment labelled 0 corresponds to reaches which do not fulfill the criteria and are further away than thresh.length
from reaches that fulfill the criteria or which are longer than thresh.length
. The other regions are labelled with 1, 2, 3, ...
See Also
rivernet.read
, mean.rivernet
, upstreamconnectivity.rivernet
,
utility
.