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

Logical. If FALSE (default), no changes are made and topological issues are identified only. If TRUE, issues are automatically corrected.

quiet

Logical. If FALSE, prints the global DCI and a plot of river segments 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.


dci documentation built on June 14, 2025, 1:08 a.m.