str_count_setdiff: Count the words in a vector that don't intersect with another...

Description Usage Arguments Value Examples

View source: R/text.table.R

Description

Count the words in a vector that don't intersect with another vector (only counts unique words).

Usage

1

Arguments

x

A vector of words.

y

A vector of words to test against.

Value

A number, the count of unique words in x not also in y

Examples

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

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