Jaccard: Jaccard

View source: R/Jaccard.R

JaccardR 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)

NetSci documentation built on Oct. 14, 2024, 5:08 p.m.