powered by
Count the words in a vector that don't intersect with another vector (only counts unique words).
str_count_setdiff(x, y)
A vector of words.
A vector of words to test against.
A number, the count of unique words in x not also in y
# NOT RUN { str_count_setdiff( x = c("a", "dog", "dog", "went", "to", "the", "store"), y = c("dog", "to", "store") ) # }
Run the code above in your browser using DataLab