Obtain the simple canonical name of a taxon
Source:R/get_simple_canonical_name.R
get_simple_canonical_name.RdReturns the simple canonical name of a taxon x in florula.collection.
Arguments
- x
An
ArangoDocumentcorresponding to a taxon inflorula.collection.- florula.collection
An
ArangoCollectioncontaining a flora list.- collapse
FALSEto get each Latin name separately, or acharacterto 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.