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

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 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.


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