jaccardSets: Jaccard index of two character vectors.

Description Usage Arguments Value References

View source: R/jaccardSets.R

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


bayesbio documentation built on May 2, 2019, 3:43 a.m.