Parse a street suffix from a string. These data should be at the end of the string (i.e. the last word).
pm_streetSuf_parse(.data, dictionary, locale = "us")
.data | A postmastr object created with pm_prep |
---|---|
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. |
If a street name is also a directional, like North Ave
, it will be
will have been parsed by pm_streetDir_parse so that only the street suffix
remains (the directional element will be stored in pm.preDir
. This function
includes a logic check for streets that have a prefix direction but not street name
after the street suffix is parsed. If those conditions are met, the street name
will be changed from NA
to the directional's preferred spelling according
to the USPS.