taxo_fuzzy_match: taxo_fuzzy_match

View source: R/taxo_fuzzy_match.R

taxo_fuzzy_matchR Documentation

taxo_fuzzy_match

Description

Fuzzy matching with names

Usage

taxo_fuzzy_match(name, master, dist = 2)

Arguments

name

Name to search

master

List of names

dist

Distance tolerance, Default: 2

Details

Fuzzy matching with names in the master list and return best match.

Value

Matched name, string distance and original name. Null if not found.

See Also

Other Name functions: build_gen_syn(), cast_canonical(), cast_scientificname(), check_scientific(), expand_name(), get_accepted_names(), guess_taxo_rank(), list_higher_taxo(), melt_canonical(), melt_scientificname(), resolve_names()

Examples


master <- data.frame("canonical" = c("Abrothrix longipilis",
                                    "Acodon hirtus",
                                    "Akodon longipilis apta",
                                    "Akodon longipilis castaneus",
                                    "Chroeomys jelskii",
                                    "Acodon jelskii pyrrhotis"),
                    stringsAsFactors = FALSE)
 taxo_fuzzy_match("Acodon hirta",master)


taxotools documentation built on Jan. 23, 2023, 5:24 p.m.