| .consolidate_ambiguous_attrs | R Documentation |
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 |
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) |
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.
output_f with attached ambiguous match attributes: - attr(*, "ambiguous_genera") - attr(*, "ambiguous_species") - attr(*, "ambiguous_infraspecies")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.