-
Notifications
You must be signed in to change notification settings - Fork 0
/
07-Standardize_1_Address_Field.Rmd
29 lines (26 loc) · 2.34 KB
/
07-Standardize_1_Address_Field.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Standardize 1 Address Field {#stdAdd1}
## Overview
The Standardize Address Field tool allows users to standardize 1 address field in a feature class. This tool works by searching the address field within the input feature class, then replaces any street prefixes (e.g.: North, north, East, West) with a standard prefix abbreviation (i.e.: "N", "S", "E", and "W"), while all suffixes (e.g.: AVE, Avenue, Street) are reformatted to [standard USPS suffixes](https://github.com/allanbreyes/udacity-data-science/blob/master/p2/data/suffixes.csv).
## Parameters
The tool has 2 parameters:
1. **Feature Class (data type: Feature Class )** - The path to the Feature Class with the address field to standardize.
2. **Field (data type: Field)** - The address field in the Feature Class to be standardized.
## How to Use
### Begin by opening the toolbox
Navigate to the location of the script toolbox, then right-click the 'Standardize 1 Address Field' script tool to open (Fig. \@ref(fig:std1open)).
```{r std1open, cache=FALSE,echo=FALSE,message=FALSE,error=FALSE,warning=FALSE,fig.cap="Opening the Standardize Address Field tool",fig.align='center'}
knitr::include_graphics("figures/std1-opentool.jpg",auto_pdf = TRUE)
```
### Fill out the parameters
Next, fill out the parameters for the tool. Here, we want to update the buildingAddress field in the Building_A Feature Class in the Example.gdb (Fig. \@ref(fig:std1params)) because we notice none standardized addresses in the field (Fig. \@ref(fig:std1before)).
```{r std1params, cache=FALSE,echo=FALSE,message=FALSE,error=FALSE,warning=FALSE,fig.cap="Tool parameters to run",fig.align='center'}
knitr::include_graphics("figures/std1-toolparams.jpg",auto_pdf = TRUE)
```
```{r std1before, cache=FALSE,echo=FALSE,message=FALSE,error=FALSE,warning=FALSE,fig.cap="The unstandardized address field attributes before running the tool.",fig.align='center'}
knitr::include_graphics("figures/std1-before.jpg",auto_pdf = TRUE)
```
### Run the Tool and View Results
After the tool has run, we can see that the building address values have been appropriately standardized (Fig. \@ref(fig:std1after)).
```{r std1after, cache=FALSE,echo=FALSE,message=FALSE,error=FALSE,warning=FALSE,fig.cap="The standardized address field attributes after running the tool.",fig.align='center'}
knitr::include_graphics("figures/std1-after.jpg",auto_pdf = TRUE)
```