| fuzzy_match_species_within_genus | R Documentation |
This function attempts to fuzzy match species names within a genus to the threatened species database using fuzzyjoin::stringdist for fuzzy matching.
fuzzy_match_species_within_genus(df, target_df = NULL)
df |
A tibble containing the species data to be matched. |
target_df |
A tibble representing the threatened species database containing the reference list of threatened species. |
If multiple species match with the same string distance (ambiguous matches),
a warning is issued and the first match is automatically selected. To
examine ambiguous matches in detail, use get_ambiguous_matches
on the result object with type = "species".
**IMPROVED**: Ambiguous match attributes now include threat category and accepted names for better decision-making.
A tibble with an additional logical column fuzzy_match_species_within_genus, indicating whether the specific epithet was successfully fuzzy matched within the matched genus ('TRUE') or not ('FALSE').
get_ambiguous_matches to retrieve ambiguous match details
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.