pm_replace: Add Parsed Street Address Data to Source Data Set

Description Usage Arguments Value

View source: R/build.R

Description

Adds standardized address and, optionally, unnest house ranges. All logical variables that were created during the data cleaning process (i.e. pm.hasHouse, pm.hasDir, etc.) are removed at this stage.

Usage

1
pm_replace(.data, source, side = "right", unnest = FALSE)

Arguments

.data

A postmastr object created with pm_prep that has been readied for replacement by fully parsing the data.

source

Original source data to merge clean addresses with.

side

One of either "left" or "right" - should parsed data be placed to the left or right of the original data? Placing data to the left may be useful in particularly wide data sets.

unnest

A logical scalar; if TRUE, house ranges will be unnested (i.e. a house range that has been expanded to cover four addresses with pm_houseRange_parse will be converted from a single observation to four observations, one for each house number). If FALSE (default), the single observation will remain.

Value

The source data with a parsed address elements added to the left side of the source data.


slu-openGIS/postmastr documentation built on March 14, 2019, 8:01 p.m.