jaccard {prabclus}R Documentation

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.

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).

Value

A symmetrical matrix of Jaccard distances.

Author(s)

Christian Hennig hennig@math.uni-hamburg.de http://www.math.uni-hamburg.de/home/hennig/

See Also

kulczynski

Examples

data(kykladspecreg)
# Note: If you do not use the installed package, replace this by
# kykladspecreg <- read.table("(path/)kykladspecreg.dat")
jaccard(t(kykladspecreg))

[Package prabclus version 1.0-2 Index]