Learn R Programming

bulkAnalyseR (version 1.1.0)

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

Description

Calculate the Jaccard similarity index (JSI) between two vectors

Usage

jaccard_index(a, b)

Value

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

Arguments

a, b

two vectors

Examples

Run this code
jaccard_index(1:4, 2:6)

Run the code above in your browser using DataLab