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