cleanPostalCodes: Clean postal codes

Description Usage Arguments Examples

View source: R/postalcodes.R

Description

Clean postal codes

Usage

1

Arguments

codes

vector that is coercible to a character vector of postal codes

blank

should there be a blank space between the two parts of the code?

Examples

1
2
3
4
5
cds <- c("A1B 2C3", "missing",
         "---  A    5G*****HHH5J4",
         "E9J6H2nnnn", "e6n8l0")
cleanPostalCodes(cds, TRUE)
cleanPostalCodes(cds, FALSE)

stevencarlislewalker/cleanPostalCodes documentation built on May 26, 2017, 7:58 p.m.