Learn R Programming

SuperExactTest (version 1.2.0)

jaccard: Calculate Jaccard Index

Description

This function calculates Jaccard indices between pairs of sets.

Usage

jaccard(x)

Value

A matrix of pairwise Jaccard indices.

Arguments

x

list, a collect of sets.

Author

Minghui Wang <minghui.wang@mssm.edu>

Examples

Run this code
if (FALSE) {
#set up fake data
x=list(S1=letters[1:20], S2=letters[10:26], S3=sample(letters,10), S4=sample(letters,10))
jaccard(x)
}

Run the code above in your browser using DataLab