Obtain the simple canonical name of a taxon
Source:R/get_simple_canonical_name.R
get_simple_canonical_name.Rd
Returns the simple canonical name of a taxon x
in florula.collection
.
Arguments
- x
An
ArangoDocument
corresponding to a taxon inflorula.collection
.- florula.collection
An
ArangoCollection
containing a flora list.- collapse
FALSE
to get each Latin name separately, or acharacter
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.