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

Description Usage Arguments Value Examples

View source: R/suggest.names.R

Description

This function tries to suggest a valid name according to the Brazilian Flora Checklist using a possibly incorrect one as a starting point.

Usage

1
2
suggest.names(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.names("Cofea arabyca")
suggest.names("Myrcia bela")

## End(Not run)

flora documentation built on April 28, 2020, 9:05 a.m.

Related to suggest.names in flora...