Learn R Programming

riverdist (version 0.17.0)

setmouth: Specify the Segment and Vertex of the Mouth of a River Network Object.

Description

Provides a user-friendly way of specifying the segment and vertex of the mouth (lowest point) of a river network object.

Usage

setmouth(seg, vert, rivers)

Value

A new river network object (see rivernetwork)

Arguments

seg

The segment number to store for the mouth

vert

The vertex number to store for the mouth

rivers

The river network object to use

Author

Matt Tyers

See Also

line2network

Examples

Run this code
data(Gulk)

# say we know that segment 1 is the lowest segment in this river network, but we don't know 
# which end is the mouth.
showends(seg=1, rivers=Gulk)

# this means that the mouth is row 1, so we can specify this:
Gulk <- setmouth(seg=1, vert=1, rivers=Gulk)

Run the code above in your browser using DataLab