Learn R Programming

rSPARCS (version 0.1.1)

DBFgeocode: Create a dbf File for Geocoding

Description

Generate address variables and output the data as a dbf file for geocoding in ArcGIS.

Usage

DBFgeocode(data,cityname,roadaddress,mailbox,ZIP)

Value

Users may output the function return to the computer as the dbf file using write.dbf ().

Arguments

data

A data.frame containing address variables that are necessry for geocoding.

cityname

The name of the variable in the data indicating city or county names.

roadaddress

The name of the variable in the data indicating home addresses.

mailbox

Optional address information such as the number of mailbox and the number of floor.

ZIP

The name of the variable in the data indicating ZIP codes.

Examples

Run this code
# similated data
datatest=data.frame(county=c("Albany","Albany","Albany"),
                address1=c("1 Lincoln ave","2 Lincoln ave","489 Washinton ave"),
                address2=c("1st floor","1st floor","2nd floor"),
                zip=12206
                )
DBFgeocode(data=datatest,cityname="county",roadaddress="address1",
mailbox="address2",ZIP="zip")

Run the code above in your browser using DataLab