Learn R Programming

textTools (version 0.1.0)

str_extract_positional_nomatch: Extract words from a vector that are not found in the same position in another vector.

Description

Extract words from a vector that are not found in the same position in another vector.

Usage

str_extract_positional_nomatch(x, y)

Arguments

x

A vector of words.

y

A vector of words to test against.

Value

x, with the words with matches found in the same position in y removed.

Examples

Run this code
# NOT RUN {
str_extract_positional_nomatch(
x = c("a", "dog", "went", "to", "the", "store"),
y = c("a", "crazy", "dog", "ran", "from", "the", "store")
)
# }

Run the code above in your browser using DataLab