powered by
Extract words from a vector that are found in the same position in another vector.
str_extract_positional_match(x, y)
A vector of words.
A vector of words to test against.
x, with the words without matches in the same position in y removed.
# NOT RUN { str_extract_positional_match( x = c("a", "dog", "went", "to", "the", "store"), y = c("this", "dog", "ran", "from", "the", "store") ) # }
Run the code above in your browser using DataLab