Errata
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 |
---|---|---|---|---|
Printed | Page 23 3rd paragraph |
The description of what the = assignment operator does is incorrect. The text says that it assigns the symbol on the left to the object on the right. It should say "This operator assigns the value of the symbol on the right to the object on the left." |
Leonor M. Abraido-Fandino | Feb 12, 2013 |
Printed | Page 53 Footnote 1 |
The footnote is incorrect. It says that the expression `[<-`(animals, 4, "duck") does not print the result on the R console. However, it does in fact print the result. The equivalent statement, animals[4] = "duck", is the one that does not print the result on the R console. |
Leonor M. Abraido-Fandino | Feb 13, 2013 |
Printed | Page 66 # modulus |
The result of the modulus example has a typo. There should be no question mark, ?, after the 20. |
Leonor M. Abraido-Fandino | Feb 13, 2013 |
Page 68 last paragraph |
For the list of the built-in operators, user should look at the help file for Syntax, not syntax, i.e., ?Syntax. |
Carlos Gamero | Dec 04, 2015 | |
Printed | Page 70 Example at the bottom of the page |
'Error: object "v" not found' appears only if v is not defined in the current environment. But if you've tried the examples on p. 69, where v is defined and modified to be a two-dimensional array, and then you run the example at the bottom of p. 70, asking for v's value will print |
Leonor M. Abraido-Fandino | Feb 13, 2013 |
Printed | Page 71 if (is(x, "numeric")) x/2 else print("x is not numeric") |
The result of this conditional statement is 0.5, not 5, because x was assigned the value of 1 on the examples on p. 70. |
Leonor M. Abraido-Fandino | Feb 13, 2013 |
Page 71 Line 29 |
if (is(x, "numeric")) x/2 else print("x is not numeric") |
Anonymous | Feb 15, 2013 | |
Page 72 Definitions of the "switcheroo" functions |
In the definition of switcheroo.if.then, if x == "a" then "camel" is printed. However, in the switcheroo.switch function, a = "alligator". When the functions are then run in the next section down, switcheroo.if.then("a") returns "camel" (correctly, according to its definition, if not alliteratively), but switcheroo.switch("a") incorrectly returns "camel". |
Matt Morrison | Jan 12, 2013 | |
Printed | Page 72 Definitions of the "switcheroo" functions |
mm1173's comments on p. 72 of the PDF version also apply to p. 72 of the printed version. |
Leonor M. Abraido-Fandino | Feb 13, 2013 |
Page 72 3rd paragraph |
> switcheroo.switch <- function(x) { |
Anonymous | Feb 15, 2013 | |
Page 75 1st |
before these codes |
Anonymous | Feb 15, 2013 | |
Printed | Page 78 Result of v[rep(c(TRUE, FALSE), 10)] |
The result of this indexing operation is incorrect. A prior example on this page sets and prints v as follows. |
Leonor M. Abraido-Fandino | Feb 13, 2013 |
Printed | Page 78 Result of v[(v %% 3 == 0)] |
The result is wrong. In a prior example on the same page, v was set and printed with the following. |
Leonor M. Abraido-Fandino | Feb 13, 2013 |
Page 78 5th paragraph |
Add the line of code |
Anonymous | Feb 15, 2013 | |
Printed | Page 79 Result of v[c(TRUE, FALSE, FALSE)] |
The result is wrong. An example on p. 78 sets and prints v as follows. |
Leonor M. Abraido-Fandino | Feb 13, 2013 |
Page 90 of pdf and (112 of 722) last code in the page |
eye.colors was used to describe factor |
Anonymous | Feb 10, 2013 | |
Page 91 The Last paragraph |
In the last line |
Anonymous | Feb 15, 2013 | |
Page 100 of pdf and (122 of 722) First Code |
As mentioned in the errata submitted earlier, the levels were not described for eye.colors.integer.vector. |
Anonymous | Feb 10, 2013 | |
Page 163 middle |
In short, I got no tables in sqlTables(ddbd). I have a 64 bit machine - is this the reason? any other idea? |
Eitan | Oct 28, 2014 | |
Page 177/(199 of 722) dow30.tickers |
The symbol declared is dow.tickers but while passing, dow30.tickers is used in the line |
Anonymous | Feb 14, 2013 | |
Printed | Page 360 Last paragraph of section on Principal Components Analysis |
Last paragraph of section on Principal Components Analysis, page 360. I |
Anonymous | Dec 06, 2012 |
Printed, PDF | Page 382 Testing for Normality - Codes |
R Code to plot both plot: |
Nico | Jan 25, 2013 |
Page 402 third code block |
The invocations of attach(), make.groups(), and detach() have a final semicolon, which is unnecessary. |
John Posner | Dec 01, 2014 | |
Page 527 Here is the code I used to read in the data... |
We need to add to the prefix ".gz" to generate the filenames. |
Nico | Feb 11, 2013 | |
Page 527 code |
Page 527 |
Rafael Nicolas Fermin | Feb 15, 2013 | |
Other Digital Version | 13604 after the line "We can use bootstrap to look at how biased median is as an estimator |
The dataset home.sale.prices.june2008 does not exist in the nutshell package. |
Jeegen | Jan 25, 2013 |