jaccardSets: Jaccard index of two character vectors.

Description Usage Arguments Value References

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

1
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


andymckenzie/bayesbio documentation built on June 13, 2019, 7:01 p.m.