str_extract_positional_match: Extract words from a vector that are found in the same...

Description Usage Arguments Value Examples

View source: R/text.table.R

Description

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

Usage

1

Arguments

x

A vector of words.

y

A vector of words to test against.

Value

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

Examples

1
2
3
4
str_extract_positional_match(
x = c("a", "dog", "went", "to", "the", "store"),
y = c("this", "dog", "ran", "from", "the", "store")
)

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