addr_parse: Parse an address string into individual components.

Description Usage Arguments Details Value Examples

View source: R/addr_parse.R

Description

This function utilizes a python script to parse out individual address components from a string.

Usage

1
addr_parse(address.string)

Arguments

address.string

a string to be parsed for address components

Details

An address string is parsed for the following components: - 'AddressNumber', 'StreetName', 'StreetPostType', 'PlaceName', 'StateName', 'ZipCode', 'StreetNamePreType', 'StreetNamePreDirectional', 'AddressNumberSuffix', 'StreetNamePostDirectional'. If any of these components are not present in the string 'NA' is returned for that component.

This function depends on having a sufficient python binary installed and having the module 'usaddress' available. Use 'pip install usaddress' to install this module after python is installed.

Value

a data.frame with the address components

Examples

1
2
addr_parse('3333 Burnet Ave, Cincinnati, OH 45229')
addr_parse('737 US 50 Cincinnati OH 45150')

cole-brokamp/geocodeCAGIS documentation built on May 13, 2019, 8:50 p.m.