Introduction to R
  • Schedule
  • Syllabus
  • Instructors
  • Practice
  • Project
  • Resources

External Resources

Lesson # Lesson/Theme Name Resources
7 Health and Retirement Study (HRS)
  • Check out the codebook I made for us!
9 Objects
  • There is an additional textbook: Hands-On Programming with R by Garrett Grolemund
    • Here is the chapter on objects
  • Page on tibble package
10 Packages
  • Danielle Navarro’s YouTube video on Installing and loading R packages: https://www.youtube.com/watch?v=kpHZVyDvEhQ
    • If you want to get more information on packages
  • Comprehensive R Archive Network (CRAN) = package mothership
  • There is an additional textbook: Hands-On Programming with R by Garrett Grolemund
    • Here is the chapter on packages
13 Quarto documents
  • To learn more about working with Quarto, check out our BERD workshop: Creating Professional Presentations and Websites using R/Quarto
16 Piping
  • Tidyverse style guide on pipes
  • More on the two pipes
    • Differences between the base R and magrittr pipes - Tidyverse blog post by Hadley Wickham
    • Discussion of differences on Stack Overflow
    • R 4.1.0 pipe overview
    • Comparing pipes: Base-R |> vs {magrittr} %>%
      • this resource includes examples and
      • also how to change the “default” pipe in RStudio from %>% to |> (keyboard shortcut will use |>)
20-23 Data transformations
  • dplyr cheat sheet
  • See this slide from a previous BERD workshop.
  • Also read the filter section in the “Data Transformation” chapter from R for Data Science (2e)
  • Click here for a useful reference for all the different operators (both logical and comparison) that you can use.
  • See more examples from the {tidyselect} webpage.
24-27 Data summarization
31-33 Data visualization (ggplot2)
  • ggplot2 Cheatsheet in html form
  • ggplot2 Cheatsheet in pdf form
  • List of complete themes
  • Modify components of a theme
  • Page on ggsave()
  • Online textbook for ggplot2: https://ggplot2-book.org/
  • Another online resource for data visualization with ggplot2: https://socviz.co/index.html#preface
  • Advanced Data Viz Class at Duke
More to be added as course progresses!