Difficult to parse addresses, particularly those that have
alphanumeric house ranges as well as units associated with them,
may be mis-parsed by postmastr. This function can be used
to manually fix mis-parsed address data.
pm_mutate(.data, uid, address, house, house_range, house_frac, house_suf, pre_dir, street, street_suf, suf_dir, unit_type, unit_num, city, state, postal, locale = "us")
| .data | A postmastr object created with pm_prep |
|---|---|
| uid | A |
| address | Optional; the new value for the |
| house | Optional; the new value for the |
| house_range | Optional; the new value (or vector) for the |
| house_frac | Optional; the new value for the |
| house_suf | Optional; the new value for the |
| pre_dir | Optional; the new value for the |
| street | Optional; the new value for the |
| street_suf | Optional; the new value for the |
| suf_dir | Optional; the new value for the |
| unit_type | Optional; the new value for the |
| unit_num | Optional; the new value (or vector) for the |
| city | Optional; the new value for the |
| state | Optional; the new value for the |
| postal | Optional; the new value for the |
| locale | A string indicating the country these data represent; the only current option is "us" but this is included to facilitate future expansion. |