Description Usage Arguments Details Value Examples
This function utilizes a python script to parse out individual address components from a string.
1 | addr_parse(address.string)
|
address.string |
a string to be parsed for address components |
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.
a data.frame with the address components
1 2 | addr_parse('3333 Burnet Ave, Cincinnati, OH 45229')
addr_parse('737 US 50 Cincinnati OH 45150')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.