Determine the presence of city names in a string.
pm_city_detect(.data, dictionary)
.data | A postmastr object created with pm_prep |
---|---|
dictionary | A tbl created with |
A tibble with a new logical variable pm.hasCity
that is
TRUE
if a city name from the given dictionary is found in the
at the end the address and FALSE
otherwise.