Learn R Programming

riverdist (version 0.17.0)

cleanup_verts: Interactive Cleanup of the Vertices of Individual Segments

Description

A trial version of a function for deep-cleaning a river network.

Sometimes a shapefile contains errors that are not obvious at an initial check, typically vertices that should not be there.

This function steps through each segment in sequence, and allows the user to interactively remove vertices.

Usage

cleanup_verts(rivers, startwith = 1)

Value

A new river network object, see

rivernetwork

Arguments

rivers

The river network object to use

startwith

The segment (number) to start with, defaulting to 1.

Author

Matt Tyers

See Also

line2network

Examples

Run this code
data(abstreams0,Koyukuk0,Kenai1)

# abstreams_fixed1 <- cleanup_verts(abstreams0)
# Koyukuk <- cleanup(Koyukuk0)
# Kenai <- cleanup(Kenai1)

Run the code above in your browser using DataLab