Skip to contents

Returns the ArangoDocument corresponding to the genus to which the given taxon x points at (directly or indirectly). Thus x is expected to be an infrageneric taxon.

Usage

get_parent_genus(x, florula.collection)

Arguments

x

An ArangoDocument corresponding to a taxon in a flora list.

florula.collection

An ArangoCollection containing a flora list.

Value

An ArangoDocument corresponding to the genus to which the given taxon x points at. If x is a genus, the function returns x.

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.