STAT2/37815: Practical R Programming

Course Notes

Author
Affiliation

Ryan McShane, Ph.D.

The University of Chicago

Modified

Oct. 10th, 2024

Website Overview

Course Description

This course covers a practical set of skills vital to modern statistics and data science in handling messy, real-world data. Throughout the course, students will practice reproducible research with version control and literate programming. They will think algorithmically with base R objects, control flow, functions, and iteration. Students will also be introduced to a variety of tidyverse data wrangling methods to import, clean, transform, join, and summarize their data. Finally, students will visualize and explore data using the grammar of graphics framework. Additional introductory topics may be discussed. No programming experience is required, although some will be helpful.

About this Website

These are course notes for STAT2/37815: Practical R Programming. I will update the website periodically with the daily notes. The website has a few quality of life improvements over the slides, including searchable text, and a more familiar format. However, the formatting of the course notes website is a function of slide formatting: I’ve done my best to mitigate the issues with translating the slide code into web pages and will not focus on formatting any longer this quarter.

Corrections to this Website

If you are a student in STAT2/37815 this quarter, you have access to a GitHub repository to submit corrections about the website, specifically. Follow the instructions in the readme.md to submit a correction.