ValidTaxo: Store results of simulation in CompareSim

View source: R/ValidTaxo.R

ValidTaxoR Documentation

Store results of simulation in CompareSim

Description

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.

Usage

ValidTaxo(list_res, test_taxo)

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.

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.

Value

This function returns a data.table similar to Data inputted in argument, with two additional columns (TestData and ValidAsso).


EcoFoG/vernabota documentation built on Feb. 15, 2023, 6:40 p.m.