bestmatch: fuzzy partial matching between a scientific name and a list...

View source: R/bestmatch.r

bestmatchR Documentation

fuzzy partial matching between a scientific name and a list of possible matches

Description

fuzzy partial matching between a scientific name and a list of possible matches

Usage

bestmatch(enteredName, possibleNames, maxErr = 3, trunc = TRUE)

Arguments

enteredName

Character string with name to check

possibleNames

Character vector of possible matches

maxErr

maximum number of different bits allowed for a partial match

trunc

TRUE/FALSE. if true and no match, retry with last three letters truncated

Value

a character string with the best match, or 'multiplePartialMatches'

Examples

possibleMatches=c('Viburnum edule','Viburnum acerifolia')
bestmatch(enteredName='Viburnum edulus',possibleNames=possibleMatches)

algaeClassify documentation built on Nov. 22, 2023, 1:08 a.m.