View source: R/pm_fuzzy_match.R
| fuzzy_match_species_within_genus_helper | R Documentation |
Helper function that performs fuzzy matching for a single genus.
This implementation uses a two-step approach to avoid issues with empty groups when filtering NAs:
Perform stringdist_left_join to get all candidates
Split into matched (finite distance) and unmatched (NA distance)
Process matched candidates to find best matches
Recombine for final output
fuzzy_match_species_within_genus_helper(df, target_df)
df |
Data frame for a single matched genus |
target_df |
Peru mammals database |
Data frame with fuzzy match results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.