jaccardSets {bayesbio}R Documentation

Jaccard index of two character vectors.

Description

This function compares the elements in two character vectors to find the Jaccard index, i.e. the number of intersections divided by the total number of elements in both sets.

Usage

jaccardSets(set1, set2)

Arguments

set1

Character vector.

set2

Character vector.

Value

A number (one-element numeric vector) specifying the Jaccard index from comparing the two sets.

References

https://en.wikipedia.org/wiki/Jaccard_index


[Package bayesbio version 1.0.0 Index]