str_count_jaccard_similarity {textTools} | R Documentation |
Calculates the intersect divided by union of two vectors of words.
Description
Calculates the intersect divided by union of two vectors of words.
Usage
str_count_jaccard_similarity(x, y)
Arguments
x |
A vector of words. |
y |
A vector of words to test against. |
Value
A number, the intersect divided by union of two vectors of words.
Examples
str_count_jaccard_similarity(
x = c("a", "dog", "went", "to", "the", "store"),
y = c("this", "dog", "went", "to", "the", "store")
)
[Package textTools version 0.1.0 Index]