.csv file or R dataframe of letter recipients, processes the column names for write.murl, checks whether United States ZIP codes conform to standard formats, and reports potential problems to the user.read.murl(file = "murljobs.csv", header = TRUE, stringsAsFactors =
FALSE, field.title = "title", field.fname = "fname", field.lname =
"lname", fields.address = "address", field.city = "city",
field.state = "state", field.zip = "zipcode", field.position =
"position", field.dept = "dept", field.institution = "institution",
colClasses = c("character"), ...).csv file or Rdataframe.c(``character'') ensures leading zeros in, for example, ZIP codes will be preserved.read.csv() if the input file is a .csv file.field.title, field.fname, and field.lname. Each of the fields defined by fields.address is formatted as a unique row. The last row contains the contents of the fields defined by field.city, field.state, and field.zip. fields.address specifies the string common to the names of the columns containing the recipients' street addresses. For example, if the user's file has the street address in columns named addr1, addr2, ..., then the user should set fields.address = "addr".
If the input file is an Rdataframe, then the argument ... is ignored.
write.murl, zip.plot## Specify path to .csv database of sample addresses
fpath <- system.file("data", "murljobs.csv", package = "muRL")
murljobs <- read.murl(fpath)Run the code above in your browser using DataLab