pm_state_detect: Detect Presence of State Name or Abbreviation

Description Usage Arguments Value

View source: R/state.R

Description

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

Usage

1
pm_state_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 states. If none is provided, the states object will be used as the default directory.

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.hasState that is TRUE if a state name or abbreviation from the given dictionary is found at the end of the address and FALSE otherwise.


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