Errata

Data Mashups in R

Errata for Data Mashups in R

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page 2
4

This url for the sheriff's is working now:

http://www.phillysheriff.com/properties.html

David Daniel  Mar 21, 2011 
PDF Page 4
Definition of badStrings

The code

badStrings<-"(\\r| a\\/?[kd]\\/?a.+$| - Premise.+$| assessed as.+$|,
Unit.+|<font size=\"[0-9]\">|Apt\\..+| #.+$|[,\"]|\\s+$)"

must be entered as a single line, with a space following the , before Unit:

|, Unit.+

William Doane  Jul 05, 2009 
PDF Page 11
Bottom

Incorrectly says "Save and unzip the following to your project directory: http://en.wikipedia.org/
wiki/World_Geodetic_System."

URL should be: http://www.temple.edu/ssdl/shpfiles/phila_tracts_2000.zip

William Doane  Jul 05, 2009 
PDF Page 13
5th paragraph

The line
> plotPolys(myShapeFile
is missing the terminating parenthesis and should read:
> plotPolys(myShapeFile)

David Smith  Jun 23, 2009 
PDF Page 14
5th paragraph

On page 3

>length(streets)

yields 1264 records but on page 14 when I run the code

>nrow(geoTable)

I get only 1210 records

and no obvious error ""xml parsing or http errors

Thanks for any guidance!

Jan Vandermeer  Aug 31, 2012 
PDF Page 15
Top of code

Incorrectly begins code with:

geocodeAddresses<-function(myStreets){
'appid<-'<put your appid here>'
myGeoTable<-data.frame(

should be:

geocodeAddresses<-function(myStreets){
appid<-'<put your appid here>'
myGeoTable<-data.frame(

(note the ' removed at the start of appid<-)

William Doane  Jul 05, 2009 
PDF Page 15
2/3rds down the page

> geoTable<-geocodeAddresses(streets) geocoding: 410 N. 61st St.

should be broken onto two lines:

> geoTable<-geocodeAddresses(streets)
geocoding: 410 N. 61st St.

William Doane  Jul 05, 2009 
PDF Page 16
2/3rds down the page

The command

> geoTable[geoTable$Y==max(geoTable$Y),]

fails because geoTable$Y is still a factor at this point. geoTable$Y is converted to a numeric column in the section immediately following.

William Doane  Jul 05, 2009 
PDF Page 30
Last line

The last line on the page,
> help.search("mean")
Shoud read:
> help.search("mean")

As written without the quotes, that command returns an error.

David Smith  Jun 23, 2009