pm_streetDir_std: Standardize Parsed State Names

Description Usage Arguments Value

View source: R/directional.R

Description

Convert directionals to the USPS preferred abbreviations

Usage

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


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