Convert directionals to the USPS preferred abbreviations

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

Arguments

.data

A postmastr object created with pm_prep

var

A character variable that may contain directionals

dictionary

Optional; A tbl created with pm_dictionary to be used as a master list of directionals. If none is provided, the dic_us_dir object will be used as the default dictionary when locale = "us".

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 an updated variable that contains the one or two-letter abbreviation for the given directional. This follows USPS addressing standards.