The street address data in SLMPD releases (either ILEADSAddress
and
ILEADSStreet
or CADAddress
and CADStreet
) are stored in separate
columns. In order to faciliate geocoding, this function combines the fields and
removes inappropriate characters in the address fields.
cs_address(.data, address, street, newVar)
.data | A tibble or data frame |
---|---|
address | Name of address number variable (typically either |
street | Name of street name variable (typically either |
newVar | Name of new variable to store concatenated address |
A copy of the object with a character vector that contains the concatenated street address data.
# load example data testData <- january2018 # add concatenated address variable testData <- cs_address(testData, address = ileads_address, street = ileads_street, newVar = address)