This function calculates Jaccard indices between pairs of sets.
jaccard(x)
list, a collect of sets.
A matrix of pairwise Jaccard indices.
# NOT RUN {
#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