full_geocode: full_geocode

Description Usage Arguments Value Examples

Description

full_geocode is a function that geocodes addresses in Milwaukee, Wisconsin. Draft version geocodes crime data, first by matching against geoprocessed MAI, then using low_level funciton to access City geocode API.

Usage

1
full_geocode(df, field, MAI)

Arguments

df

A dataframe with City of Milwaukee records to geocode.

field

(NOT IMPLEMENTED)Character string of single column name containing street address information to geocode. (Note: you may need to concatenate prior to using this function).

MAI

A data frame containing the Master Address Index, already geoprocessed against parcel centroids.

Value

A data frame.

Examples

1
2
3
4
5
6
7
8
## Not run: 
data("raw_wibrs_2005thru2015")
crime_subset <- raw_wibrs_2005thru2015[sample(nrow(raw_wibrs_2005thru2015), 30), ]
data("geo_mai")
geo_crime <- full_geocode(crime_subset, "LOCATION", geo_mai)
head(geo_crime)

## End(Not run)

MatthewSchumwinger/mkedata documentation built on May 7, 2019, 4:34 p.m.