jaccardIndex: Calculate Jaccard Index

Description Usage Arguments Value Examples

View source: R/jaccardIndex.R

Description

Calculates Jaccard Index (length of intersection divided by length of union) for 2 given sets.

Usage

1

Arguments

x

Set 1 vector

y

Set 1 vector

Value

Jaccard Index

Examples

1
2
3
4
5
6
7
id.x <- sample_data$GOBP$ID[1]
id.y <- sample_data$GOBP$ID[2]

x <- go2gene(id.x)
y <- go2gene(id.y)

jaccardIndex(x, y)

altintasali/ontoClust documentation built on Dec. 19, 2021, 1:36 a.m.