str_count_jaccard_similarity {textTools} | R Documentation |
Calculates the intersect divided by union of two vectors of words.
str_count_jaccard_similarity(x, y)
x |
A vector of words. |
y |
A vector of words to test against. |
A number, the intersect divided by union of two vectors of words.
str_count_jaccard_similarity(
x = c("a", "dog", "went", "to", "the", "store"),
y = c("this", "dog", "went", "to", "the", "store")
)