Determine the presence of city names in a string.

pm_city_detect(.data, dictionary)

Arguments

.data

A postmastr object created with pm_prep

dictionary

A tbl created with pm_dictionary to be used as a master list for cities.

Value

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.