Jaccard {NetSci} | R Documentation |
Calculates the Jaccard index between different sets.
Jaccard(Data)
Data |
A data.frame with 2 columns. The first refers to the set and the second the elements |
a data.frame with the set names and their Jaccard index
set.seed(123)
Data = data.frame(Class = sample(c("X", "Y", "Z"), replace = TRUE, size = 50),
Element = sample(LETTERS[1:15], replace = TRUE, size = 50))
Data = unique(Data)
Jaccard(Data)