suggest.name: Suggest a valid name from a misspelled one

Description Usage Arguments Value Examples

View source: R/suggest.name.R

Description

This function tries to suggest a valid name according to The Plant List using a possibly incorrect one as a starting point.

Usage

1
2
suggest.name(taxon, max.distance = 0.75, return.na = TRUE,
  ignore.words = NULL)

Arguments

taxon

a character vector containing a single name

max.distance

a numeric value indicating how conservative the function should be when searching for suggestions. Values close to 1 are very conservative

return.na

a logical indicating whether to return a NA or the original input when no suggestion is found

ignore.words

NULL or a character vector with words to be ignored by the function. Useful if you are automatizing a workflow and wants the function to ignore words or phrases such as "not found", "dead", "undetermined", and so on

Value

A character vector or NA

Examples

1
2
3
4
5
## Not run: 
suggest.name("Cofea arabyca")
suggest.name("Myrcia bela")

## End(Not run)

gustavobio/tpl documentation built on May 17, 2019, 9:29 a.m.