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 July 4, 2022, 1:05 a.m.