parse_addr: Parse street addresses

Description Usage Arguments Value See Also Examples

Description

parse_addr parses street addresses into their component parts, producing the addresses' house name, number, road and suburb, city district and city, state district and state, postal code, and country.

Usage

1
parse_addr(addresses)

Arguments

addresses

a character vector of addresses to parse.

Value

a data.frame of 20 columns; house, category, near, house_number, road, unit, level, staircase, entrance, po_box, suburb, city_district, city, state_district, state, postal_code, country_region, country, world_region. Values not found in the address are represented with NAs

See Also

normalise_addr for normalising addresses.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
str(parse_addr("781 Franklin Ave Crown Heights Brooklyn NYC NY 11216 USA"))

## End(Not run)
# 'data.frame':	1 obs. of  10 variables:
#   $ house          : chr NA
#   $ category       : chr NA
#   $ near           : chr NA
#   $ house_number   : chr "781"
#   $ road           : chr "franklin ave"
#   $ unit           : chr NA
#   $ level          : chr NA
#   $ staircase      : chr NA
#   $ entrance       : chr NA
#   $ po_box         : chr NA
#   $ suburb         : chr "crown heights"
#   $ city_district  : chr "brooklyn"
#   $ city           : chr "nyc"
#   $ state_district : chr NA
#   $ state          : chr "ny"
#   $ postal_code    : chr NA
#   $ country_region : chr NA
#   $ country        : chr "usa"
#   $ world_region   : chr NA

Ironholds/poster documentation built on May 7, 2019, 6:41 a.m.