correct_divergences: Correct river divergences

View source: R/enforce_dendritic.R

correct_divergencesR Documentation

Correct river divergences

Description

Correct river divergences

Usage

correct_divergences(net, correct = TRUE, quiet = FALSE)

Arguments

net

A river_net object.

correct

A logical value, when FALSE, the default, corrections are not automatically applied and a sf object of lines is returned with topological errors indicated. If TRUE errors are automatically corrected.

quiet

A logical value indicating whether the global DCI and a map of segments should be printed to the console. Defaults to TRUE.

Value

If correct is TRUE a river_net object with the shorter of each divergent pair removed. If correct is FALSE a sf object with divergent pairs identified with a shared number in the new "divergent" column.


aarkilanian/dci documentation built on Feb. 5, 2024, 7:12 p.m.