correct_complex: Correct complex confluences

View source: R/enforce_dendritic.R

correct_complexR Documentation

Correct complex confluences

Description

Correct complex confluences

Usage

correct_complex(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 sf object of rivers with complex confluences separated into two closely located valid confluences. If correct is FALSE a sf object with rivers participating in complex confluences labeled with the same number ina new "complex" column.


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