powered by
This function calculates Jaccard similarity matrix between two partitions.
jaccard(x, y)
a matrix of Jaccard similarity between clusters in two partitions.
-- vectors of cluster labels
x=c(1,2,3) y=c(3,2,1) jaccard(x,y)
Run the code above in your browser using DataLab