This function is used in the CompareSim function. It adds two columns to the dataset if the option Results_Simulations is set to TRUE : TestData is a boolean to know if the tree was in the test dataset, and ValidAsso is a boolean to know if the associated species is the right one.
Arguments
- list_res
Results of SimFullCom function applied to the test dataset: a list of data.tables with simulated taxonomic information.
- test_taxo
The original taxonomic information for the test dataset.
Value
This function returns a data.table similar to Data inputted in argument, with two additional columns (TestData and ValidAsso).
Details
This function compares the taxonomic information in the column GenSpCor of the simulated dataset list_res with the original information from the columns Genus and Species of the dataset test_taxo. It then adds two columns to the dataset, specifying if each tree is used in the test and if the estimated species is the same as the original one.