Errata

R in a Nutshell

Errata for R in a Nutshell

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
Printed Page 36
First line

The text says "... into your curent session." and I believe it was intended to be "... into you current session."

Hufo Gabriel Eyherabide   Jan 24, 2018 
Printed Page 36
First line

The text says "... into your curent session." and I believe it was intended to be "... into your cuRRent session." (the uppercase added just for visibility). Notice that I hare reported this before but in the process I introduced another typo.

Hugo Gabriel Eyherabide  Feb 03, 2018 
Printed Page 44
1st paragraph

third line in 1st paragraph says
the most imporant
> the mos important

Francisco Murphy  Aug 17, 2012 
ePub Page 61
Loc 61, bottom of page

install.packages("nutshell") fails, the package appears to have a license issue with CRAN.

Seth Kushniryk  May 02, 2020 
PDF Page 72
Line below switcheroo.switch("a")

"camel" should be changed to "alligator"

Anonymous  Oct 09, 2013 
Printed Page 80
Table 7.1, example for vector of category raw

The example says CharToRaw("Hello") but I believe it should be charToRaw("Hello"), that is, the command should start with lower case.

Hugo Gabriel Eyherabide  Feb 03, 2018 
PDF Page 169
3rd paragraph

I configured the "bbdb" DSN for the baseball data using the path shown by the following expression:
system.file("extdata","bb.db", package="nutshell.bbdb")

I loaded the the RODBC package
library(RODBC)
and established the connection using the odbcConnect function:
bbdb <- odbcConnect("bbdb")

But when I tried to get a list of the tables it returned no information:

> sqlTables(bbdb)
[1] TABLE_CAT TABLE_SCHEM TABLE_NAME TABLE_TYPE REMARKS
<0 rows> (or 0-length row.names)

sqlColumns(bbdb,"Allstar")
Error in sqlColumns(bbdb, "Allstar") :
?Allstar?: table not found on channel

Lefteris Nikolidakis  May 26, 2014 
Printed Page 326
second equation

The first equation on the page is for "Pearson correlation statistic" while the paragraph before the second equation suggests that the second equation is "Spearman correlation statistic". It looks to me like these two equations are the same thing. Was the intention here that the second equation should be the "Spearman rank correlation statistic" rs=1-((6∑D²)/(n(n²-1))) or am I missing something?

2010 edition

Phill Kelley  Dec 27, 2015 
Printed Page 365
1st paragraph

Author states "is the difference due to chance or is it likely that these two variables (delivery method and sex) are independent?". Aren't "difference due to chance" and "independent" the same thing in this context?
If so, it should state "or is it likely that these two variables (delivery method and sex) are dependent".

Found in 2010 edition.

Note to the author: great book!

Maarten Lamers  Apr 19, 2014