powered by
Find word within a sentence
match_word(x, tbl)
An integer vector the same length as x, where the i-th entry is the integer position of the first word in tbl
x
i
tbl
detected in x[i]. Non-matches return NA. Words are strings of uppercase separated by spaces.
x[i]
NA
A character vector of uppercase sentences.
A table of words. Long vectors are not permitted.