Determine the presence of house numbersin a string.
pm_streetDir_detect(.data, dictionary, locale = "us")
.data | A postmastr object created with pm_prep |
---|---|
dictionary | Optional; A tbl created with |
locale | A string indicating the country these data represent; the only
current option is |
A tibble with a new logical variable pm.hasDir
that is
TRUE
if a directional is found in the first or last word of
the address and FALSE
otherwise.
If a street name is also a directional, like North Ave
, it will be
identified as such. See pm_streetDir_parse and pm_streetSuf_parse
for additional details on how these addresses are handled.