dot-consolidate_ambiguous_attrs: Consolidate Ambiguous Match Attributes

.consolidate_ambiguous_attrsR Documentation

Consolidate Ambiguous Match Attributes

Description

Collects ambiguous match attributes from intermediate pipeline results and attaches them to the final output. This ensures that ambiguous match information created during fuzzy matching is preserved through all transformations and available to the user via get_ambiguous_matches().

Usage

.consolidate_ambiguous_attrs(output_f, pipe_1_5, infra_out)

Arguments

output_f

Final output tibble from the matching pipeline

pipe_1_5

List containing results from nodes 1-5 (genus/species matching)

infra_out

List containing results from nodes 6-7 (infraspecies matching)

Details

This function solves the problem of attributes being lost during dplyr transformations (left_join, mutate, bind_rows, etc.). It retrieves attributes created in earlier stages of the pipeline and re-attaches them to the final output.

Value

output_f with attached ambiguous match attributes: - attr(*, "ambiguous_genera") - attr(*, "ambiguous_species") - attr(*, "ambiguous_infraspecies")


peruflorads43 documentation built on Nov. 24, 2025, 10:15 a.m.