Run the Numbers — R and the Tidyverse
Instructor Resources
Overview
Instructor materials for Run the Numbers, covering R programming, data manipulation with the tidyverse, and reproducible workflows.
moeteach R package: A companion R package (moeteach) is available for this book. It provides pre-loaded datasets, auto-graded coding exercises, and helper functions for classroom use. Install with remotes::install_github("marginoferror/moeteach"). Documentation and vignettes are included in the package.
Debugging exercises: A set of curated debugging exercises accompanies each chapter. Students are given broken code and must identify and fix errors — a skill rarely practiced in textbooks but critical in real analytics work. Answer keys are provided below.
Available Resources
Solutions Manual — Worked solutions for all end-of-chapter exercises across Check, Apply, and Go Deeper tiers. Includes annotated R code with output. PENDING
Test Bank — Multiple choice, short answer, and code-writing questions for each chapter. Exportable for LMS import. PENDING
Slide Decks — Chapter-by-chapter lecture slides (PowerPoint and PDF). Includes live-code walkthroughs with instructor notes. PENDING
Syllabus Templates — Sample syllabi for 15-week semester and 10-week quarter formats. Includes suggested pacing and lab session plans. PENDING
Assignment Templates — Homework assignments, lab exercises, and data wrangling projects. Designed for RStudio/Posit Cloud environments. PENDING
Dataset Documentation — Codebooks and data dictionaries for all datasets. Includes notes on the
moeteachpackage datasets. PENDINGDebugging Exercise Keys — Answer keys for all chapter debugging exercises. PENDING
Chapter Coverage
| Chapter | Topic |
|---|---|
| 1 | Getting Started with R |
| 2 | Data Types and Structures |
| 3 | Importing and Tidying Data |
| 4 | Data Transformation with dplyr |
| 5 | Working with Strings and Dates |
| 6 | Joins and Relational Data |
| 7 | Functional Programming and Iteration |
| 8 | Reproducible Reports with Quarto |
| 9 | APIs and Web Data |
| 10 | Building an Analytics Pipeline |
Questions?
Contact instructors@marginoferrormedia.com for questions about these materials.