-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy path00-errata.qmd
More file actions
85 lines (63 loc) · 3.69 KB
/
Copy path00-errata.qmd
File metadata and controls
85 lines (63 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
engine: knitr
---
# Errors and updates {.unnumbered}
::: {.callout-note}
Chapman and Hall/CRC published this book in July 2023. You can purchase that [here](https://www.routledge.com/Telling-Stories-with-Data-With-Applications-in-R/Alexander/p/book/9781032134772).
This online version has some updates to what was printed. An online version that matches the print version is available [here](https://rohanalexander.github.io/telling_stories-published/).
:::
*Last updated: 21 November 2024.*
The book was reviewed by Piotr Fryzlewicz in *The American Statistician* [@Fryzlewicz2024] and Nick Cox on [Amazon](https://www.amazon.com/gp/customer-reviews/R3S602G9RUDOF/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=1032134771). I am grateful that they gave such a lot of their time to provide the review, as well as their corrections and suggestions.
Since the publication of this book in July 2023, there have been a variety of changes in the world. The rise of generative AI has changed the way that people code, Python has become easier to integrate alongside R because of Quarto, and packages continue to update (not to mention a new cohort of students has started going through the book). One advantage of having an online version is that I can make improvements.
I am grateful for the corrections and suggestions of:
Andrew Black,
Clay Ford,
Crystal Lewis,
David Jankoski,
Donna Mulkern,
Emi Tanaka,
Emily Su,
Inessa De Angelis,
James Wade,
Julia Kim,
Krishiv Jain,
Seamus Ross,
Tino Kanngiesser, and
Zak Varty.
## Errors
The following errors exist in the print version, but have been updated in the online version. If you notice an error not mentioned below, please submit an [issue](https://github.com/RohanAlexander/telling_stories/issues) or send an email: rohan.alexander@utoronto.ca.
- p.\ xxi: Add Alex Hayes to the Acknowledgments.
- p. 20: Add "packages" to "use the `tidyverse` and `janitor` packages."
- p. 34: `"daily-shelter-overnight-service-occupancy-capacity-2021"` should be `"daily-shelter-overnight-service-occupancy-capacity-2021.csv"` (note the ".csv" added).
- p. 34: Replace the first code chunk with the second:
```{r}
#| eval: false
#| echo: true
toronto_shelters_clean <-
clean_names(toronto_shelters) |>
select(occupancy_date, id, occupied_beds)
head(toronto_shelters_clean)
```
```{r}
#| eval: false
#| echo: true
toronto_shelters_clean <-
clean_names(toronto_shelters) |>
mutate(occupancy_date = ymd(occupancy_date)) |>
select(occupancy_date, occupied_beds)
head(toronto_shelters_clean)
```
- p. 38: "At this point we can make a nice graph of the number of ridings won by each party in the 2019 Canadian Federal Election." should refer to the 2021 election.
- p. 41: Remove a stray ":::".
- p. 66: "New Project$dots" should be "New Project...".
- p. 138: `scale_color_brewer(palette = "Set1")` is unnecessary and should be removed.
- p. 138: The figure caption should refer to inflation not unemployment.
- p. 154: Q9 is missing a "work" after the code chunk and before the "if".
- p. 188: "Leonhard Euler" should be "Carl Friedrich Gauss".
- p. 279: "detonated" should be "denoted".
- p. 342: Q5 option b is repeated in option c.
- p. 347: The "Exploratory data analysis" chapter of *R for Data Science* is 11, not 12.
- p. 353: Fix a "the the".
- p. 355: "...results in an estimate of 5,814, both of which are too low." should be "...results in an estimate of 11,197, the former is too low and the latter is too high."
- p. 371: The sentence that references Figure 11.11a was confusing and needs to more clearly reference the figure.
- p. 587: The link should be: https://fivethirtyeight.com/features/police-misconduct-costs-cities-millions-every-year-but-thats-where-the-accountability-ends/