Determine the presence of intersection in a string.

pm_intersect_detect(.data, var, dictionary, locale = "us")

Arguments

.data

A postmastr object created with pm_prep

var

A character variable containing address data to be parsed

dictionary

A tbl created with pm_dictionary to be used as a master list intersection values.

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.hasIntersect that is TRUE if an intersection from the given dictionary is found in the address and FALSE otherwise.