Skip to contents

Returns the simple canonical name of a taxon x in florula.collection.

Usage

get_simple_canonical_name(x, florula.collection, collapse = FALSE)

Arguments

x

An ArangoDocument corresponding to a taxon in florula.collection.

florula.collection

An ArangoCollection containing a flora list.

collapse

FALSE to get each Latin name separately, or a character to be used to collapse the names.

Value

If collapse=FALSE the function returns 'genus' name, 'epithet' name, etc. separately. If collapse is not FALSE it should be a character as it is passed to paste function, and a single character string is returned with the simple canonical name of the taxon.

Details

The flora list in florula.collection must follow a specific structure. Check function insert_taxa for more details.

Author

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