Learn R Programming

flora (version 0.3.4)

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

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

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

Run this code
# NOT RUN {
suggest.names("Cofea arabyca")
suggest.names("Myrcia bela")
# }

Run the code above in your browser using DataLab