Jaccard: Jaccard

Description Usage Arguments Value Examples

View source: R/Jaccard.R

Description

Calculates the Jaccard index between different sets.

Usage

1
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

1
2
3
4
5
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)

NetSci documentation built on Dec. 11, 2021, 9:21 a.m.