sequenceverts {riverdist} | R Documentation |
Store Vertices in Ascending Sequence
Description
Rearranges the vertices of a river network object so that vertices are stored sequentially moving up river for all segments (coordinates [1,] are the bottom of each segment).
Usage
sequenceverts(rivers)
Arguments
rivers |
The river network object to use |
Value
A new river network object (see rivernetwork)
Note
Even without calling sequenceverts
, the vertices will be stored
sequentially - either moving up river or down for a given segment. What
sequenceverts()
adds is a standardized direction.
Currently, no function in package 'riverdist' requires the vertices to be stored sequentially.
Author(s)
Matt Tyers
See Also
Examples
data(Gulk)
Gulk <- setmouth(seg=1, vert=1, rivers=Gulk)
str(Gulk)
Gulk.dir <- sequenceverts(rivers=Gulk)
str(Gulk.dir)
[Package riverdist version 0.16.3 Index]