defrost: Submit query to find updates in nomenclautre

Description Usage Arguments Details Value Examples

View source: R/defrost.R

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

1
2
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

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

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

Examples

1
defrost(query=c("Bufo calamita", "Bufo viridis"))

defrostR documentation built on Jan. 20, 2018, 9:01 a.m.