Learn R Programming

prabclus (version 2.1-4)

jaccard: Jaccard distance matrix

Description

Computes Jaccard distances between the columns of a 0-1-matrix.

Usage

jaccard(regmat)

Arguments

regmat
0-1-matrix. Columns are species, rows are regions.

Value

  • A symmetrical matrix of Jaccard distances.

Details

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!

See Also

kulczynski

Examples

Run this code
data(kykladspecreg)
jaccard(t(kykladspecreg))

Run the code above in your browser using DataLab