04. Using R to look at data

Published

Tuesday, September 23, 2025

This week …

We’ll spend most of the rest of the semester working in R and RStudio. Time to learn it!

Required Reading

  • Hadley Wickham, Garrett Grolemund, and Mine Çetinkaya-Rundel R for Data Science: Import, Tidy, Transform, Visualize, and Model Data, 2nd ed. (Sebastopol, CA: O’Reilly Media, 2023), https://r4ds.hadley.nz.

Read the text online. Complete as much of the “Whole Game” section as you can, i.e. Chapters 1-8. (They are short.) Create a new R project, or add a Quarto document to your existing class notes project, and try redoing some of the examples and code in the Whole Game section using data of your own, or the dataset you chose from last week’s assignment. Don’t worry if things don’t go as expected, but do make a note of what you found difficult or confusing so we can discuss it in seminar.

Examples

R basics and ggplot examples

Assignment

No assignment this week.

Slides

The “R and Quarto” slides repeat some of the material from the first week, just for convenience, and then move on to the introduction to R. There is more material in both slide decks than we can covered in class.

View HTML slides in a new window Download a PDF of these slides

View HTML slides in a new window Download a PDF of these slides