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
ArangoDocumentcorresponding to a taxon in a flora list.- rank
 A
characterwith the rank level to prune to.- florula.collection
 An
ArangoCollectioncontaining 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.