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

splitsegmentat(seg, vert, rivers)

Arguments

seg

The segment to split

vert

The vertex to split it at

rivers

The river network object to use

Value

A new, updated river network object

See also

line2network

Examples

data(Gulk) plot(x=Gulk)
Gulk2 <- splitsegmentat(seg=1, vert=400, rivers=Gulk)
#> Note: any point data already using the input river network must be re-transformed to river coordinates using xy2segvert() or ptshp2segvert().
plot(x=Gulk2)