Learn R Programming

healthyAddress (version 0.4.5)

match_word: Find word within a sentence

Description

Find word within a sentence

Usage

match_word(x, tbl)

Value

An integer vector the same length as x, where the i-th entry is the integer position of the first word in tbl

detected in x[i]. Non-matches return NA. Words are strings of uppercase separated by spaces.

Arguments

x

A character vector of uppercase sentences.

tbl

A table of words. Long vectors are not permitted.