DrawDeterm | R Documentation |
This function attributes the full species name corresponding to the highest value of alpha to a given tree.
DrawDeterm(AlphaV, levelAsso, VernName2Sim)
AlphaV |
data.table with the botanical information in the first 4 columns and one column for the vernacular name of interested, created in the function DrawBota |
levelAsso |
Level of association depending on the available information ("AssoByGenus", "AssoByFam" or "AssoByVern") |
VernName2Sim |
The vernacular name of the tree for which we want to get a full botanical name (character) |
This function performs the following steps:
Get the species for which the value of alpha is the highest
if there are no tie, return the value of this species and the associated correction code
if there is a tie, draw a species randomly within these species
This function returns a list with two elements: the first one is the associated botanical name and the second one the method of association (AssoByGenus, AssoByGenusT, AssoByFam, AssoByFamT, AssoByVern or AssoByVernT).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.