Self-paced course · Beginner · 112 lessons

ZERO TO DRAFT DAY

BreeZing Through the Tidyverse

Master employer-ready R, data wrangling, visualization, and reproducible reporting, on real NFL, NBA, and MLB data, starting from zero.

An agent can write the first script. This course is about being able to read it, change it and trust it.

Who it is for. Anyone starting with R, from zero. No prior programming needed, ideal if you want job-ready analytics skills on real sports data.

$99 Enroll now One payment, lifetime access. Included with Membership.
Why take this

Three things you leave with.

Fluent dplyr and tidyr for real-world data wrangling

Publication-quality ggplot2 visualizations

Reproducible reports and project workflows

Not for you if
  • You're already fluent in the tidyverse, this starts from fundamentals
  • You want Python, this is R
  • You want deep statistical theory, this is applied and hands-on
Play with the data

Run the code, in your browser.

The chart on this page, drawn by code you can edit. R runs on webR and Python on Pyodide; nothing loads until you press Run, and nothing you type leaves the page.

This chart is the code's result. Run recomputes it in your browser.
Run differential game by game (bars), its rolling mean (line) and a band of one rolling sd.

Edit me: Move the window, or change the metric to runs_scored and run again.

Data: Season game log (game_log.csv). Simulated for practice by AthlyticZ (agents/sim_data.py, seed 20261109). License CC BY 4.0.

The code runs in your browser on webR or Pyodide; nothing you type leaves the page.

What you get

Everything that exists for this course, and nothing that does not.

  • Every lesson112 lessons in 38 sections, yours to keep
  • Project files and codeEvery notebook, dataset and finished build, to keep and adapt
Paul Sabin
Your instructor Paul Sabin

PhD · Co-Founder @ Sage Sports Group

Teaches the course the way the work is done in the role above. The team page lists everything they teach here.

The problem

Sports analytics runs on R as much as Python, and the tidyverse is the dialect the field's reports and packages are written in.

Three decisions it teaches
  1. How to wrangle real data with dplyr and tidyr so the pipeline reads like the question
  2. How to build a publication-quality chart in ggplot2, layer by layer
  3. How to make a report someone else can rerun

The artifact. A completed NFL Draft analysis capstone: data, charts and a reproducible report.

Ragents/viz/breezing-through-the-tidyverse.R
Dante Penhallow Luis Strathley Marco Galloway-Cruz Hollis Strathley Marco Brannagh Isaac Wyndholt Andres Brannagh Gabe Sorrento-Vale Brooks Larkspur Eli Brannagh Mateo Wyndholt Santi Castellane Julian Galloway-Cruz Eli Pemberly Dante Quintavalle Mateo Dunmarrow Wes Quillon Owen Brannagh Reid Ivanescu 0.1 0.2 0.3 batting average First 45 at-bats (gold) against the rest of the season (cream)
A tidyverse pipeline on the hot-start hitters: read, mutate, arrange, and a ggplot2 chart of the first 45 at-bats. Drawn at build from the data on this site by the code below.
The code that drew it
# A tidyverse pipeline on the hot-start hitters: read, mutate, arrange, and a ggplot2 chart of the first 45 at-bats.
suppressPackageStartupMessages({library(dplyr); library(ggplot2); library(readr); library(svglite)})
hitters <- read_csv("site/18-practice/hot-start-hitters/files/batting_2026.csv", show_col_types = FALSE) |>
  mutate(avg = hits / at_bats, rest = remaining_hits / remaining_at_bats) |>
  arrange(desc(avg)) |> mutate(name = factor(name, levels = rev(name)))
p <- ggplot(hitters, aes(y = name)) +
  geom_segment(aes(x = avg, xend = rest, yend = name), color = "#8FA3AA", linewidth = .6) +
  geom_point(aes(x = avg), color = "#C7BB42", size = 2.6) +
  geom_point(aes(x = rest), color = "#F5F1E6", size = 1.8, shape = 18) +
  labs(x = "batting average", y = NULL, title = "First 45 at-bats (gold) against the rest of the season (cream)") +
  theme_minimal(base_size = 11) +
  theme(plot.background = element_rect(fill = "#010B0F", color = NA), panel.background = element_rect(fill = "#010B0F", color = NA),
        panel.grid = element_line(color = "#1B3A42"), text = element_text(color = "#F5F1E6"), axis.text = element_text(color = "#F5F1E6"),
        plot.title = element_text(face = "bold", size = 12))
s <- svgstring(width = 7.2, height = 4.4, standalone = FALSE); print(p); invisible(dev.off()); cat(s())

Data: Hot-start hitters. Simulated for practice by AthlyticZ (agents/sim_data.py, seed 20261109). License CC BY 4.0.

Curriculum

Every section, every lesson.

From the academy course record, in the order it is taught. The first section is open; the rest fold out.

112 lessons in 38 sections, 5 quizzes. Every lesson is yours to keep.

Course Introduction4 items
  1. Welcome and Course Overview Let's get started!
  2. Packages and Options Setting up your environment
  3. Introducing Sports Datasets Getting familiar with sports data
  4. Basic R Code Building blocks for R programming
Coding and Quizzes:2 items
  1. Coding Review: Course Introduction Intro to the RStudio environment
  2. Quiz: Course Introduction Assessing our knowledge quiz
Data Exploration4 items
  1. Atomic Data Types R's fundamental data types
  2. Data Structures Data organization in R
  3. Reading in Data Importing and managing sports data
  4. Piping & Data Summaries Enhancing workflow efficiency and insight
Coding and Quizzes:5 items
  1. Coding Review: Atomic Data Types Data type mastery
  2. Coding Review: Data Structures Reaching data structure proficiency
  3. Coding Review: Reading in Data Sharpening our file handling skills
  4. Coding Review: Piping & Data Summaries Enhancing our data workflows
  5. Quiz: Data Exploration Assessing our knowledge quiz
Basics3 items
  1. Assigning Values in R Best practices for variable assignment
  2. Calling Functions in R Harnessing the power of functions
  3. Math Operations & Sequences Leveraging mathematical operations for analysis
Coding and Quizzes:4 items
  1. Coding Review: Assigning Values in R Manipulating data in R
  2. Coding Review: Calling Functions in R Utilizing functions effectively
  3. Coding Review: Math Operations & Sequences Performing numeric operations in R
  4. Quiz: Basics Assessing our knowledge quiz
Coding Style & Tidy Workflow4 items
  1. Spaces & Indentation Structuring code for clarity and readability
  2. Pivot Longer Transforming data for tidy analysis
  3. Pivot Wider Reshaping data for insightful exploration
  4. Nested Data Handling complex data structures
Coding and Quizzes:7 items
  1. Coding Review: Spaces & Indentation Reviewing code formatting
  2. Quiz: Spaces & Indentation Assessing our knowledge
  3. Coding Review: Pivot Longer Reshaping our data (longer)
  4. Quiz: Pivot Longer Assessing our knowledge
  5. Coding Review: Pivot Wider Reshaping our data (wider)
  6. Coding Review: Nested Data
  7. Quiz: Nested Data Assessing our knowledge
Loops & Vectorization3 items
  1. For Loops Iterating through sports data
  2. While Loops Implementing iterative processes for analysis
  3. Vectorization Optimizing performance with vectorized operations
Coding and Quizzes:4 items
  1. Coding Review: For Loops Iterating with for loops
  2. Coding Review: While Loops Iterating with while loops
  3. Coding Review: Vectorization Optimizing code performance
  4. Quiz: Loops & Vectorization Assessing our knowledge
Functions & Logic3 items
  1. If Statements Implementing conditional logic
  2. Probability Functions Understanding probability distributions
  3. Writing Functions Crafting custom functions for sports analytics
Coding and Quizzes:4 items
  1. Coding Review: If Statements Implementing conditional logic
  2. Coding Review: Probability Functions Analyzing probabilities
  3. Coding Review: Writing Functions Creating our own customized functions
  4. Quiz: Functions & Logic Assessing our knowledge
Data Wrangling (Part 1)3 items
  1. Select Selecting columns efficiently
  2. Group By, Summarize, & Filter Aggregating and filtering sports data
  3. Mutate Creating new variables for analysis
Coding and Quizzes:4 items
  1. Coding Review: Select Subsetting our data efficiently
  2. Coding Review: Group By, Summarize, and Filter Aggregating and filtering our data
  3. Coding Review: Mutate Creating new data columns
  4. Quiz: Data Wrangling (Part 1) Assessing our knowledge
Data Wrangling (Part 2)3 items
  1. Tidyselect Fine-tuning column selection
  2. Across Applying functions across multiple columns
  3. Missing Values Managing and imputing missing data
Coding and Quizzes:4 items
  1. Coding Review: Tidyselect Applying Tidyselect keywords
  2. Coding Review: Across Applying functions across columns
  3. Coding Review: Missing Values Handling cases of missing data
  4. Quiz: Data Wrangling (Part 2) Assessing our knowledge
RStudio Shortcuts1 item
  1. RStudio Shortcuts Boosting productivity with RStudio shortcuts
Coding and Quizzes:1 item
  1. Coding Review: RStudio Shortcuts Applying RStudio shortcut commands
Data Visualization (Part 1)4 items
  1. Base R plots Creating basic plots for sports visualization
  2. Intro to ggplot2 Crafting data visualizations with ggplot2
  3. Histograms Visualizing distributions
  4. Densities
Coding and Quizzes:4 items
  1. Coding Review: Base R Plots Creating basic plots with sports data
  2. Coding Review: Intro to ggplot2
  3. Coding Review: Histograms Visualizing data distributions
  4. Coding Review: Densities Representing data distributions
Data Visualization (Part 2)4 items
  1. Customizing Themes Tailoring visuals for effective communication
  2. Colors, Palettes & Facets Enhancing visual aesthetics
  3. Team Logos & Colors Incorporating team branding into visualizations
  4. Calibration Plots Simplifying calibration plots for sports data
Coding and Quizzes:5 items
  1. Coding Review: Customizing Themes Personalizing plot appearance
  2. Coding Review: Colors, Palettes & Facets Enhancing our visualizations
  3. Coding Review: Team Logos & Colors Incorporating team identity
  4. Coding Review: Calibration Plots Visualizing model performance overviews
  5. Quiz: Data Visualization (Part 2) Assessing our knowledge
Factors1 item
  1. Intro to Factors Managing categorical data in sports analysis
Coding and Quizzes:2 items
  1. Coding Review: Factors Understanding categorical variables
  2. Quiz: Factors Assessing our knowledge
Simulation (Part 1)2 items
  1. Setting up Simulation Simulating scenarios in sports analytics
  2. Intro to data.tables
Coding and Quizzes:3 items
  1. Coding Review: Setting up Simulation Preparing for simulating data
  2. Coding Review: Intro to data.tables
  3. Quiz: Simulation (Part 1) Assessing our knowledge
Simulation (Part 2)2 items
  1. Parallelization Parallel processing for large-scale sports analysis
  2. Rcpp Introduction Integrating C++ for performance enhancement
Coding and Quizzes:3 items
  1. Coding Review: Parallelization Speeding up our computations
  2. Coding Review: Rcpp Introduction Integrating C++ code with R
  3. Quiz: Simulation (Part 2) Assessing our knowledge quiz
Strings3 items
  1. Intro to Strings Manipulating text data
  2. stringr Simplifying string operations with stringr
  3. Regular Expressions Harnessing the power of regular expressions
Coding and Quizzes:4 items
  1. Coding Review: Intro to Strings Handling our text data
  2. Coding Review: Stringr Applying functions from stringr
  3. Coding Review: Regular Expressions Keywords for working with text data
  4. Quiz: Strings Assessing our knowledge quiz
Dates/Times2 items
  1. Intro to Dates Handling date data in sports analysis
  2. Intro to Lubridate Simplifying date manipulation with lubridate
Coding and Quizzes:2 items
  1. Coding Review: Intro to Dates Handling date and time data
  2. Coding Review: Lubridate Working with dates using Lubridate
Joins1 item
  1. Joining Data in R Merging data sources for comprehensive analysis
Coding and Quizzes:1 item
  1. Coding Review: Joining Data in R Combining data sets
Purrr2 items
  1. Intro to Purrr
  2. Split Data Models Dividing data for modeling in sports analysis
Coding and Quizzes:2 items
  1. Coding Review: Intro to Purrr Functional programming with Purrr
  2. Coding Review: Split Data Models Applying models to data subsets
Communication3 items
  1. Intro to Quarto Introduction to dynamic documents with Quarto
  2. Quarto with Word and PowerPoint Creating dynamic reports for sports analysis
  3. Additional Resources Recommended sites for reporting and visualizing sports data
Case Study: NFL Draft Analysis4 items
  1. NFL Draft Curves and Data Loading Introduction to the case study and importing data
  2. NFL Draft Pick Value Plots Visualizing the value of NFL draft picks
  3. NFL Draft Quarto Report Drafting our first Quarto report for NFL draft analysis
  4. NFL Draft & Trades Finalized Report Finalizing our Quarto report
What is included

What is yours when you enroll.

  • Lifetime access Every module and lesson, yours to keep and revisit, forever.
  • Project files and code Every notebook, dataset, and finished build, to keep and adapt.
  • All future updates New lessons and refreshes as the tools move, at no extra cost.
  • Self-paced Start today, go at your own pace, no cohort to wait for.

Refunds. If you enrolled and it is the wrong course for you, write to michael@athlyticz.com and a person will answer.

Questions

The ones that stop a purchase.

Is this included with Membership?

Yes. Membership includes this and the entire course catalog, plus the live Masterclass. If you plan to take more than a couple of courses, Membership is the better math.

Is this too advanced, or too basic, for me?

Anyone starting with R, from zero. No prior programming needed, ideal if you want job-ready analytics skills on real sports data. If the "not for you" list above reads like you, start elsewhere; if the outcome at the top reads like something you could use next week, it is pitched right.

What exactly do I get, and for how long?

20 sections · 56 lessons. Every lesson, the project files and code, and all future updates. Lifetime access: it is yours to keep.

Is it self-paced?

Yes. Start today and go at your own pace, with lifetime access to every lesson and all future updates.

BreeZing Through the Tidyverse

Master employer-ready R, data wrangling, visualization, and reproducible reporting, on real NFL, NBA, and MLB data, starting from zero.

This course $99 one payment, lifetime access

20 sections · 56 lessons, the project files, and every future update.

Enroll now
Membership $2,999 a year

This course, the whole catalog, and the Masterclass: every live session and every recording.

Get Membership