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().
.consolidate_ambiguous_attrs(output_f, pipe_1_5, infra_out)output_f with attached ambiguous match attributes: - attr(*, "ambiguous_genera") - attr(*, "ambiguous_species") - attr(*, "ambiguous_infraspecies")
Final output tibble from the matching pipeline
List containing results from nodes 1-5 (genus/species matching)
List containing results from nodes 6-7 (infraspecies matching)
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.