fix_unit_names: Rearrange unit/apt numbers to standardize addresses

Description Usage Arguments Value Examples

Description

This function standardizes apartment numbers to the format #-# Street St, Extra Info. Vectorized over 'address'.

Usage

1
fix_unit_names(address, ignore.case = FALSE)

Arguments

address

A vector of address strings

ignore.case

Ignore case for internal regex matching and rearranging.

Value

A vector of converted address strings

Examples

1
2
3
4
5
6
7
fix_unit_names('halifax shopping centre 7001 mumford rd unit 166')

fix_unit_names(c('halifax shopping centre 7001 mumford rd',
                 'rr 2 box 166'))

fix_unit_names('HFX SHOPPING CENTRE 7001 MUMFORD RD UNIT 166',
                ignore.case = TRUE)

tweed1e/matchtools documentation built on May 29, 2019, 10:51 a.m.