defrostR (version 1.0.0)

defrost: Submit query to find updates in nomenclautre

Description

This function takes a query (a list of taxon names to be assessed) and the amphibian species of the world synonym table (preferrably generated with the function getSynonyms(), or loaded from the data set stored internally) as input and returns an updated list of names.

Usage

defrost(query, asw = defrostR::asw_synonyms, interactive = F,
  return.no.matches = F)

Arguments

query

vector of taxon names to be processed (can also be tip labels of a phylogeny for example)

asw

amphibian species of the world synonym reference table on which to base new names on. Default setting will use the internally stored data set that may not be the most up-to-date.

interactive

logical argument (default=FALSE) of whether to allow an "on the fly" decision to be made on what name to take if synonym matches multiple names. FLASE will return all possible names for a given query as a string, TRUE will ask the user to select one.

return.no.matches

logical argument of whether to leave taxa not found in the reference table blank or whether to fill in the names provided by the query. default is FALSE

Value

this function returns a data frame with the following information/columns: original/input names, "stripped" names with no formatting, status of what action has been taken, updated names as recommended by the reference table

Details

Two logical arguments can be turned on to a) allow an "on the fly" decision to be made on what name to take if synonym matches multiple names (if not, it will return all possible names) and to b) return the original query name if no match is found

Examples

Run this code
# NOT RUN {
defrost(query=c("Bufo calamita", "Bufo viridis"))
# }

Run the code above in your browser using DataLab