Learn R Programming

taxotools (version 0.0.79)

taxo_fuzzy_match: 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

Value

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

Details

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

Examples

Run this code
# NOT RUN {
master <- data.frame("canonical" = c("Abrothrix longipilis",
                                    "Acodon hirtus",
                                    "Akodon longipilis apta",
                                    "Akodon longipilis castaneus",
                                    "Chroeomys jelskii",
                                    "Acodon jelskii pyrrhotis"),
                    stringsAsFactors = F)
 taxo_fuzzy_match("Acodon hirta",master)
# }

Run the code above in your browser using DataLab