Learn R Programming

EMA (version 1.4.7)

jaccard: Compute Jaccard distance on a data matrix

Description

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

Usage

jaccard(mat)

Arguments

mat

0-1-matrix.

Value

A distance matrix

Details

Missing values are allowed, and are excluded from all computations involving the cols within which they occur.

References

Jaccard, P. (1908), Nouvelles recherches sur la distribution lorale, Bull. Soc. Vaud. Sci. Nat., 44, 223-270.