jaccard {prabclus} | R Documentation |
Computes Jaccard distances between the columns of a 0-1-matrix.
jaccard(regmat)
regmat |
0-1-matrix. Columns are species, rows are regions. |
The Jaccard distance between two species is 1-(number of regions where both species are present)/(number of regions where at least one species is present).
Thank you to Laurent Buffat for improving this function!
A symmetrical matrix of Jaccard distances.
Christian Hennig chrish@stats.ucl.ac.uk http://www.homepages.ucl.ac.uk/~ucakche
data(kykladspecreg) # Note: If you do not use the installed package, replace this by # kykladspecreg <- read.table("(path/)kykladspecreg.dat") jaccard(t(kykladspecreg))