Determine the presence of street suffix names or abbreviations at the end of a string.

pm_streetSuf_detect(.data, dictionary, locale = "us")

Arguments

.data

A postmastr object created with pm_prep

dictionary

Optional; a tbl created with pm_dictionary to be used as a master list for street suffixes. If none is specified, the full default street suffix dictionary will be used.

locale

A string indicating the country these data represent; the only current option is "us" but this is included to facilitate future expansion.

Value

A tibble with a new logical variable pm.hasStreetSuf that is TRUE if a street suffix name or abbreviation from the given dictionary is found at the end of the address and FALSE otherwise.