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

View source: R/suggest.names.R

suggest.namesR Documentation

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

## Not run: 
suggest.names("Cofea arabyca")
suggest.names("Myrcia bela")

## End(Not run)

gustavobio/flora documentation built on Feb. 3, 2024, 8:40 a.m.