Jaccard {NetSci} | R Documentation |
Jaccard
Description
Calculates the Jaccard index between different sets.
Usage
Jaccard(Data)
Arguments
Data |
A data.frame with 2 columns. The first refers to the set and the second the elements |
Value
a data.frame with the set names and their Jaccard index
Examples
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)
[Package NetSci version 1.0.1 Index]