Learn R Programming

riverdist (version 0.16.3)

cleanup: Interactive Cleanup of a River Network

Description

This is the recommended function to use for cleanup of a river network. It calls all available river network editing functions in appropriate sequence, detecting which are needed or recommended, and prompts user input wherever necessary.

Currently, it automatically calls removeduplicates, prompts the user whether to run dissolve, automatically runs removemicrosegs and splitsegments if needed, provides user prompts for addverts and setmouth, detects if segments are unconnected and provides user prompts for removeunconnected or connectsegs, automatically runs checkbraidedTF, and prompts the user whether to run buildsegroutes if no braiding is detected.

Usage

cleanup(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(abstreams0,Koyukuk0,Kenai1)

# abstreams_fixed <- cleanup(abstreams0)
# Koyukuk <- cleanup(Koyukuk0)
# Kenai <- cleanup(Kenai1)

Run the code above in your browser using DataLab