forked from RohanAlexander/tswd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrata.qmd
More file actions
110 lines (76 loc) · 3.91 KB
/
Copy patherrata.qmd
File metadata and controls
110 lines (76 loc) · 3.91 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
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: 3 April 2024.*
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,
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 unnecesary 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. 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/
## Updates
While I have tried to limit changes to what was printed, the following have been made:
**2023-07-24**
- Updated links and citations for: @barrett2021; @democratizingr; @chase2020; @kasymatching; and @matmortality.
**2023-08-10**
- Added a reference to @beautifulcode.
**2023-09-18**
- Updated links and citations for: @barrett2021.
**2023-11-12**
- Updated links and citations for: @barrett2021, again.
- Alberta updated their COD file so that it now needs a skip.
**2023-01-10**
- Mentioned Python in the Introduction.
- Adding Prediction as a chapter.
- Updated from `get_stamenmap()` to `get_stadiamap()`.
**2023-01-13**
- Moved DAGs to the writing research chapter.