Standardize street names by converting to title case, removing punctuation, and optionally applying ordinal conversion as well as a dictionary to the data.
pm_street_std(.data, var, dictionary, ordinal = TRUE, locale = "us")
.data | A postmastr object created with pm_prep |
---|---|
var | A character variable that may contain street suffixes |
dictionary | Optional; a tbl created with |
ordinal | A logical scalar; if |
locale | A string indicating the country these data represent; the only current option is "us" but this is included to facilitate future expansion. |