Skip to contents

This function attributes the full species name corresponding to the highest value of alpha to a given tree.

Usage

DrawDeterm(AlphaV, levelAsso, VernName2Sim)

Arguments

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)

Value

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).

Details

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