Skip to contents

This function is used in the CompareSim function. It compares the original taxonomic information of a dataset with predicted one and return the percentage of matching species.

Usage

CompareTaxo(list_res, test_taxo)

Arguments

list_res

Results of SimFullCom function applied to the test dataset: a list of datatables with simulated taxonomic information.

test_taxo

The original taxonomic information for the test dataset.

Value

A double corresponding to the percentage of well simulated species.

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. The number of good estimation is divided by the length of the test dataset to return a percentage good simulations.