Search an infrageneric name in a flora list (given a genus ArangoDocument)
Source: R/search_infrageneric.R
search_infrageneric.RdThis function searches for a given infrageneric.name in florula.collection, constraining the search to a given genus and allowing the user to select which attributes to search in.
Usage
search_infrageneric(
infrageneric.name,
x.genus,
attributes.to.search = c("epithet", "subspecies", "variety", "form"),
florula.collection
)Arguments
- infrageneric.name
A
characterwith an infrageneric Latin name to search within a given genus.- x.genus
An
ArangoDocumentcorresponding to the genus rank inflorula.collection, to which the search should be constrained.- attributes.to.search
A
charactervector with the attributes to search in (any of 'epithet', 'subspecies', 'variety' and 'form').- florula.collection
An
ArangoCollectioncontaining a flora list.
Value
A list with the ArangoDocument's in the florula.collection from which infrageneric Latin names match the given infrageneric.name in the attributes.to.search. The function returns a list of length 0 if no match is found.
Details
The given infrageneric.name is searched separately in each of the given attributes (one by one), for all ArangoDocument's that (directly or indirectly) point at the given genus (x.genus) and the results are collected in a list.
Author
Tiago Monteiro-Henriques. E-mail: tmh.dev@icloud.com.