ValidTaxo | R Documentation |
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.
ValidTaxo(list_res, test_taxo)
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. |
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.
This function returns a data.table similar to Data inputted in argument, with two additional columns (TestData and ValidAsso).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.