Try an unambiguous link to an accepted Euro+Med name
Source:R/EUROMED_accepted_name.R
EUROMED_accepted_name.Rd
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 toTRUE
.- extra.message
A
character
with extra text to be appended to the 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.