Learn R Programming

riverdist (version 0.16.3)

splitsegmentat: Split a Segment at a Specified Vertex

Description

Splits a segment at a specified vertex, creating two new segments.

Usage

splitsegmentat(seg, vert, rivers)

Value

A new, updated river network object

Arguments

seg

The segment to split

vert

The vertex to split it at

rivers

The river network object to use

Author

Matt Tyers

See Also

line2network

Examples

Run this code
data(Gulk)
plot(x=Gulk)

Gulk2 <- splitsegmentat(seg=1, vert=400, rivers=Gulk)
plot(x=Gulk2)

Run the code above in your browser using DataLab