pm_intersect_detect: Detect Presence of Intersection in Address

Description Usage Arguments Value

View source: R/intersection.R

Description

Determine the presence of intersection in a string.

Usage

1
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.


chris-prener/postmastr documentation built on Dec. 13, 2020, 3:39 a.m.