sequenceverts: Store Vertices in Ascending Sequence

View source: R/segs_direction.R

sequencevertsR 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

line2network

Examples

data(Gulk)
Gulk <- setmouth(seg=1, vert=1, rivers=Gulk)
str(Gulk)

Gulk.dir <- sequenceverts(rivers=Gulk)
str(Gulk.dir)

riverdist documentation built on Aug. 22, 2023, 5:06 p.m.