To a user-defined rank
level, this function returns the ArangoDocument
with the lowest rank existing in florula.collection
selecting from all the parent taxa of a given taxon and the given taxon itself.
Arguments
- x
An
ArangoDocument
corresponding to a taxon in a flora list.- rank
A
character
with the rank level to prune to.- florula.collection
An
ArangoCollection
containing a flora list.
Value
An ArangoDocument
corresponding to the user-defined rank (if present) or the lowest rank existing in florula.collection
.
Details
The given ArangoDocument
is expected to come from a flora list where all documents must have one (and only one) of these attributes: "genus", "epithet", "subspecies", "variety", "form".
Author
Tiago Monteiro-Henriques. E-mail: tmh.dev@icloud.com.