View source: R/segs_direction.R
sequenceverts | R Documentation |
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).
sequenceverts(rivers)
rivers |
The river network object to use |
A new river network object (see rivernetwork)
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.
Matt Tyers
line2network
data(Gulk)
Gulk <- setmouth(seg=1, vert=1, rivers=Gulk)
str(Gulk)
Gulk.dir <- sequenceverts(rivers=Gulk)
str(Gulk.dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.