Description Usage Arguments Value Examples
Weighted count of the words in a vector that are found in another vector.
1 | str_weighted_count_match(x, y)
|
x |
A list of words and counts created by str_counts(x). |
y |
A list of words and counts created by str_counts(y). |
A number, the count of words in x also in y scaled by the number of times each word appears in x and y. If a word appears 3 times in x and 2 times in y, the result is 6, assuming no other words match.
1 2 3 4 | str_weighted_count_match(
x = str_counts(c("a", "dog", "dog", "went", "to", "the", "store")),
y = str_counts(c("dog", "dog", "dog"))
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.