Skip to contents

The main objective of this function is to try, as unambiguously as possible, to link a name given by the user to an accepted name in Euro+Med checklist (http://ww2.bgbm.org/EuroPlusMed/query.asp).

Usage

EUROMED_accepted_name(
  search.name,
  NameId = NULL,
  relevant.region = NULL,
  interactive = TRUE,
  extra.message = ""
)

Arguments

search.name

A character with a taxon name.

NameId

A character. Optionally the search can be conducted by Euro+Med NameId.

relevant.region

A character following Euro+Med nomenclature of regions and subregions.

interactive

A logical. Should user be asked in cases ambiguity is still present? Defaults to TRUE.

extra.message

A character with extra text to be appended to the output message.

Value

A list of Euro+Med fields and a output message.

Details

The function aims at reducing user intervention to the minimum. When multiple names are returned by Euro+Med website, the function uses the relevant.region (also given by the user) to reduce that ambiguity, using the distribution data present in Euro+Med. If relevant.region is not enough to eliminate ambiguity, the function asks for user input (if interactive = TRUE). If interactive = FALSE, then, in the cases where user intervention is needed, the function returns most values to NA with an appropriate report message.

Author

Tiago Monteiro-Henriques. E-mail: tmh.dev@icloud.com.