Skip to contents

Returns the rank of the Latin name saved in the ArangoDocument.

Usage

get_rank(x)

Arguments

x

An ArangoDocument corresponding to a taxon in a flora list.

Value

A character with the rank of the name.

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". When the name saved in the ArangoDocument is a specific epithet (saved in the attribute "epithet") this function return "species" as rank.

Author

Tiago Monteiro-Henriques. E-mail: tmh.dev@icloud.com.