overlap_jaccard_index: Calculate Jaccard Index between two sets

View source: R/GeneTonic-extras.R

overlap_jaccard_indexR Documentation

Calculate Jaccard Index between two sets

Description

Calculate similarity coefficient with the Jaccard Index

Usage

overlap_jaccard_index(x, y)

Arguments

x

Character vector, corresponding to set 1

y

Character vector, corresponding to set 2

Value

A numeric value between 0 and 1

Examples

a <- seq(1, 21, 2)
b <- seq(1, 11, 2)
overlap_jaccard_index(a, b)

federicomarini/GeneTonic documentation built on Dec. 21, 2024, 10:05 p.m.