Description Usage Arguments Value Examples
Count the intersecting words in a vector that are found in another vector (only counts unique words).
1 | str_count_intersect(x, y)
|
x |
A vector of words. |
y |
A vector of words to test against. |
A number, the count of unique words in x also in y
1 2 3 4 | str_count_intersect(
x = c("a", "dog", "went", "to", "the", "store"),
y = c("dog", "to", "store")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.