Errata for Krause and Olson, The Basics of S and S-Plus, 2nd edition, 2nd print page 79, lines -3/-4 reads > weight[height > 65] 155 160 135 should read > weight[height > 65] 150 155 135 page 88, l. 16/17 dimensions are not dropped, such that a 6x1 matrix instead of a vector should be displayed. reads > matrix(1:6) 1 2 3 4 5 6 should read > matrix(1:6) 1 2 3 4 5 6 page 92, lines -5 to -3 the result of the division is incorrect page 95, lines 10-12 reads > colMeans(country.data) GDP Pop Inflation Area 973 38.5 1.875 256.75 should read > colMeans(x) GDP Pop Inflation Area 1110 38.75 1.2 256.75 page 95, lines -3 to -1 reads > apply(country.data, 2, max) GDP Pop Inflation Area 2365 82 1.3 544 should read > apply(country.data, 2, max) GDP Pop Inflation Area 2365 82 1.8 544 page 97, lines 11 to 13 reads > apply(country.frame[, 1:4], 2, max) GDP Pop Inflation Area 2365 82 1.3 544 should read > apply(country.data, 2, max) GDP Pop Inflation Area 2365 82 1.8 544 page 107, lines -12 to -9 If GDP is set to NA, GDPcap (GDP per capita) should also be set to NA to be consistent. page 154/155, code generating Figure 6.7 reads gr1 <- dotplot(voice.part~height, data=singer) [...] gr2 <- dotplot(voice.part~height, data=singer, panel=panel.reggraph) should read gr1 <- xyplot(duration ~ waiting, data=geyser) [...] gr2 <- xyplot(duration ~ waiting, data=geyser, panel=panel.reggraph)