Errata

25 Recipes for Getting Started with R

Errata for 25 Recipes for Getting Started with 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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

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

Version Location Description Submitted By Date submitted Date corrected
19
Last line of R code at the bottom of the page

The line of R code:

suburbs[ c(1, 3)]

should be:

suburbs[ c(1, 4)]

Column 4 contains the population numbers, Column 3 contains the state abbreviations.

Note from the Author or Editor:
Erratum report is correct. Somehow, the R code and its related output are mismatched. (I'm not clear how this happened. Cut-and-paste error, perhaps?) The example must be corrected.

The relevant recipe is "Selecting Data Frame Columns by Position".

windrider55  Mar 19, 2011 
26
4th line from the bottom

The line:

cor.test(x, y, method="Spearman")

should be:

cor.test(x, y, method="spearman")

R is case sensitive, so using "Spearman" (initial caps) doesn't work.

Note from the Author or Editor:
Erratum report is correct. In the text, replace "Spearman" with "spearman" in R code.

windrider55  Mar 19, 2011 
27
4th line from the Bottom

The line:

Use method="Spearman" when working ...

should be:

Use method="spearman" when working ...

R is case sensitive, so trying to pass "Spearman" (with initial caps) as the method won't work.

Note from the Author or Editor:
Erratum report is correct. Text should say "spearman", not "Spearman".

windrider55  Mar 19, 2011 
41
7th, 6th, and 2nd line from bottom

The function:

outlier.test

has been deprecated. It should be replaced by:

outlierTest

Note from the Author or Editor:
Erratum report is correct. Recipe should be changed/rewritten to use "outlierTest" function since outlier.test function is not obsolete.

windrider55  Mar 19, 2011