str_count_jaccard_similarity: Calculates the intersect divided by union of two vectors of...

Description Usage Arguments Value Examples

View source: R/text.table.R

Description

Calculates the intersect divided by union of two vectors of words.

Usage

1

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

1
2
3
4
str_count_jaccard_similarity(
x = c("a", "dog", "went", "to", "the", "store"),
y = c("this", "dog", "went", "to", "the", "store")
)

textTools documentation built on Feb. 5, 2021, 5:07 p.m.