Learn R Programming

BarcodingR (version 1.0-3)

compare2delimitations: Comparision between two Delimitations

Description

Comparision between two delimitations of a group of samples, for instance, traditionally morphological delimitation and molecular delimitation (MOTU).

Usage

compare2delimitations(deli1, deli2)

Arguments

deli1

a character array (vector),containing a set of, for example, morphological identification (species names), to compare with

deli2

a character array (vector),containing a set of, molecular delimitation (MOTU).

Value

a list containing the adjusted Rand index comparing the two partitions (a scalar). This index has zero expected value in the case of random partition, and it is bounded above by 1 in the case of perfect agreement between two partitions; the numbers of matches, splits,merges, and corresponding percentage.

References

L. Hubert and P. Arabie (1985) Comparing Partitions, Journal of the Classification 2:193-218.

Examples

Run this code
# NOT RUN {




deli1<-c(1,1,1,1,1,1)
deli2<-c(1,1,2,1,1,3)
out<-compare2delimitations(deli1,deli2)
out
# }

Run the code above in your browser using DataLab