CompareTaxo: Compare the original taxonomic information of a dataset with...

View source: R/CompareTaxo.R

CompareTaxoR Documentation

Compare the original taxonomic information of a dataset with predicted one

Description

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.

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.

Value

A double corresponding to the percentage of well simulated species.


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