bestmatch | R Documentation |
fuzzy partial matching between a scientific name and a list of possible matches
bestmatch(enteredName, possibleNames, maxErr = 3, trunc = TRUE)
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 |
a character string with the best match, or 'multiplePartialMatches'
possibleMatches=c('Viburnum edule','Viburnum acerifolia')
bestmatch(enteredName='Viburnum edulus',possibleNames=possibleMatches)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.