str_any_match: Detect if there are any words in a vector also found in...

Description Usage Arguments Value Examples

View source: R/text.table.R

Description

Detect if there are any words in a vector also found in another vector.

Usage

1

Arguments

x

A vector of words.

y

A vector of words to test against.

Value

TRUE/FALSE, TRUE if any words in x are also in y

Examples

1
2
3
4
5
6
7
8
str_any_match(
x = c("a", "dog", "went", "to", "the", "store"),
y = c("the")
)
str_any_match(
x = c("a", "dog", "went", "to", "the", "store"),
y = c("apple")
)

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