* No need to load ggplot2, tidyverse is loaded
* Add motivation for why to pivot + minor edits
* Add an exercise on making a contingency table
* Use index.Rmd instead of rmd to make the build work
* Case study should be sentence case
* Make figure more legible and don't rely on color alone
* Streamline example + names_transform
* Potential pathway for more advanced pivot_wider
* Pivot even wider example + new unite exercise
* Update case study to use full feature pivot_wider
* Change the pregnancy exercise
* Fix chapter reference
* Remove century example since first 2 digits is not century
* Add caption to floating figure
* Align parens
* Fix referencing
* Add alt text to all chunks with plots or figures
* Remove unused figure (related to year -> century)
* Make subparts of exercises alphabetical
* Remove references to names_transform, use mutate()
* Fix code style
* Few more chp/sec reference fixes
* Put line break back
Line 506:
When fixing the string format in the `key` column using the `str_replace` function, I think the column name was mistakenly stated as "names_from", where it should actually be "key", which is the original column name.
* Updates tidy.Rmd to teach pivot_longer() and pivot_wider() instead of gather() and spread().
* Eliminates all out-dated uses of gather and spread found in a find-in-files search.
* Removes yaml header and duplicate sentence from tidy.Rmd.
in Figure 9.2, you mention "table4" but the code uses "table4a and table4b". I can't run the code for table4a and table4b, the datasets from DSR refers to table4 for table4a and table5 for table4b.