match_word {healthyAddress}R Documentation

Find word within a sentence

Description

Find word within a sentence

Usage

match_word(x, tbl)

Arguments

x

A character vector of uppercase sentences.

tbl

A table of words. Long vectors are not permitted.

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.


[Package healthyAddress version 0.4.3 Index]