cleanup: Interactive Cleanup of a River Network

Description Usage Arguments Value Author(s) See Also Examples

View source: R/shortestroute_cleanup.R

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

1

Arguments

rivers

The river network object to use

Value

A new river network object, see rivernetwork

Author(s)

Matt Tyers

See Also

line2network

Examples

1
2
3
4
5
data(abstreams0,Koyukuk0,Kenai1)

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

riverdist documentation built on Sept. 10, 2021, 9:06 a.m.