Convert state names to the USPS approved two-letter abbreviation.
pm_state_std(.data, var, dictionary, locale = "us")
.data | A postmastr object created with pm_prep |
---|---|
var | A character variable that may contain city names |
dictionary | Optional; a tbl created with |
locale | A string indicating the country these data represent; the only current option is "us" but this is included to facilitate future expansion. |
A tibble with an updated variable that contains the two-letter abbreviation for the given U.S. state. This follows USPS addressing standards, which require that the state abbreviation be used.