jaccard_index: Calculate the Jaccard similarity index (JSI) between two...

View source: R/QCplotFuns.R

jaccard_indexR Documentation

Calculate the Jaccard similarity index (JSI) between two vectors

Description

Calculate the Jaccard similarity index (JSI) between two vectors

Usage

jaccard_index(a, b)

Arguments

a, b

two vectors

Value

The JSI of the two vectors, a single value between 0 and 1.

Examples

jaccard_index(1:4, 2:6)

bulkAnalyseR documentation built on Dec. 28, 2022, 2:04 a.m.