Learn R Programming

taxotools (version 0.0.139)

taxo_fuzzy_match: taxo_fuzzy_match

Description

Fuzzy matching with names

Usage

taxo_fuzzy_match(name, master, dist = 2)

Value

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

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.

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

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab