jaccard: Calculate Jaccard Index of two sets

View source: R/jaccard.R

jaccardR Documentation

Calculate Jaccard Index of two sets

Description

The 'jaccard' function calculates the Jaccard Index of two sets.

Usage

jaccard(x, y)

Arguments

x, y

Vectors of the same mode containing a sequence of non-duplicated items.

Value

The Jaccard Index as a numeric value.

Examples

## NOT RUN
# jaccard(1:10, 1:20)


Mengbo-Li/brainClass documentation built on March 16, 2023, 12:06 p.m.