Learn R Programming

riverdist (version 0.17.0)

sequenceverts: 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)

Value

A new river network object (see rivernetwork)

Arguments

rivers

The river network object to use

Author

Matt Tyers

See Also

line2network

Examples

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

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

Run the code above in your browser using DataLab