Learn R Programming

textTools (version 0.1.0)

str_count_jaccard_similarity: 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

Run this code
# NOT RUN {
str_count_jaccard_similarity(
x = c("a", "dog", "went", "to", "the", "store"),
y = c("this", "dog", "went", "to", "the", "store")
)
# }

Run the code above in your browser using DataLab