On this page
A season average is slow to move. A team’s form changes faster: the offense that struggled in September can look different over its last two games or so. This recipe compares each team’s last 150 offensive plays with the 150 before them, then lists the five biggest risers and the five biggest fallers.
There is no NBA rolling-window release yet, so this recipe is college football only.
The data
The cfb_rolling_windows release has one file per season
and no R loader, so read it by URL.
nflreadr::load_from_url() reads the .rds copy
with packages the site already uses. The .parquet and
.csv copies hold the same rows.
url <- paste0(
"https://github.com/sportsdataverse/sportsdataverse-data/releases/download/",
"cfb_rolling_windows/rolling_windows_2026.rds"
)
windows <- as.data.frame(nflreadr::load_from_url(url))
stopifnot(nrow(windows) > 0)
dim(windows)
#> [1] 29314 20
names(windows)
#> [1] "season" "entity_type" "entity_id" "entity_name"
#> [5] "team_id" "metric" "window_unit" "window_n"
#> [9] "cur" "prev" "season_start" "career_baseline"
#> [13] "delta_prev" "delta_season" "delta_career" "delta_prev_rank"
#> [17] "n" "qualified" "last_event_date" "as_of_date"Each row is one player or team, one metric and one window size.
-
curis the metric over the lastwindow_nevents (plays, carries, dropbacks or targets, named inwindow_unit). -
previs the metric over thewindow_nevents before those. -
delta_previscur - prev, anddelta_prev_rankranks it (1 is the biggest rise). -
nis how many events the last window holds. A row isqualifiedonce that window is full.
count(windows, entity_type, metric, window_unit, window_n)
#> entity_type metric window_unit window_n n
#> 1 player epa carry 50 2396
#> 2 player epa carry 100 2396
#> 3 player epa dropback 50 799
#> 4 player epa dropback 100 799
#> 5 player epa dropback 300 799
#> 6 player epa target 30 3493
#> 7 player epa target 60 3493
#> 8 player success_rate carry 50 2396
#> 9 player success_rate carry 100 2396
#> 10 player success_rate dropback 50 799
#> 11 player success_rate dropback 100 799
#> 12 player success_rate dropback 300 799
#> 13 player success_rate target 30 3493
#> 14 player success_rate target 60 3493
#> 15 team epa play 150 241
#> 16 team epa play 300 241
#> 17 team success_rate play 150 241
#> 18 team success_rate play 300 241This file is the season in progress. The date shows how current it is:
Risers and fallers
Keep teams, EPA per play and the 150-play window, and only qualified rows that also have a previous window: a program with no earlier plays has no change to rank. The percentile places each team’s last 150 plays among every team in the same pool, so a big riser can still be below average.
pool <- windows |>
filter(
entity_type == "team", metric == "epa", window_n == 150,
qualified, !is.na(prev)
) |>
mutate(pct = 100 * percent_rank(cur))
stopifnot(all(pool$n == 150), !anyDuplicated(pool$entity_id))
nrow(pool)
#> [1] 231
movers <- bind_rows(
Risers = slice_max(pool, delta_prev, n = 5, with_ties = FALSE),
Fallers = slice_min(pool, delta_prev, n = 5, with_ties = FALSE),
.id = "group"
) |>
select(group, entity_name, prev, cur, n, pct, delta_prev_rank)
movers
#> group entity_name prev cur n pct
#> 1 Risers Northern Arizona Lumberjacks -0.360948924 0.06938308 150 69.5652174
#> 2 Risers California Golden Bears -0.363933024 0.02209257 150 60.0000000
#> 3 Risers Wisconsin Badgers -0.134216286 0.22637368 150 94.3478261
#> 4 Risers Oklahoma State Cowboys 0.005274711 0.35611294 150 99.5652174
#> 5 Risers James Madison Dukes -0.057667329 0.28448616 150 97.8260870
#> 6 Fallers Northern Iowa Panthers 0.270391692 -0.29584162 150 6.5217391
#> 7 Fallers Holy Cross Crusaders 0.279480971 -0.20416812 150 18.6956522
#> 8 Fallers Northwestern State Demons -0.131588582 -0.54315963 150 0.0000000
#> 9 Fallers Pittsburgh Panthers -0.062059615 -0.47061823 150 0.4347826
#> 10 Fallers Eastern Washington Eagles 0.146160803 -0.22776833 150 16.5217391
#> delta_prev_rank
#> 1 1
#> 2 2
#> 3 3
#> 4 4
#> 5 5
#> 6 231
#> 7 230
#> 8 229
#> 9 228
#> 10 227The pool holds every team the release covers, FCS programs as well as FBS.
The table
gt_delta() computes the change from the two rate
columns, so the table shows the arithmetic it ranks. Every rate shows
its sample: the earlier window is 150 plays by definition, and the last
window’s n sits next to its rate. The change column’s green
and red are not the only cue, since every change also carries its sign.
Pass color_positive and color_negative to
gt_delta() for a pair that does not rely on red-green
vision.
movers |>
gt(groupname_col = "group") |>
gt_sdv_logos(entity_name, league = "cfb", height = 22, include_name = TRUE) |>
gt_delta(prev, cur, column_label = "Change", decimals = 3) |>
fmt_number(c(prev, cur), decimals = 3) |>
cols_merge(c(cur, n), pattern = "{1} (n = {2})") |>
gt_percentile_bar(pct, width = 160) |>
cols_label(
entity_name = "Team",
prev = "Previous 150 plays",
cur = "Last 150 plays",
pct = "Last 150, percentile",
delta_prev_rank = "Change rank"
) |>
tab_header(
title = "Offensive form: last 150 plays vs the 150 before",
subtitle = paste("EPA per play, 2026 season, as of", as_of)
) |>
tab_source_note("Data: sportsdataverse-data release cfb_rolling_windows") |>
gt_theme_sdv(density = "compact")| Offensive form: last 150 plays vs the 150 before | |||||
| EPA per play, 2026 season, as of 2026-11-28 | |||||
| Team | Previous 150 plays | Last 150 plays | Change | Last 150, percentile | Change rank |
|---|---|---|---|---|---|
| Risers | |||||
Northern Arizona Lumberjacks |
−0.361 | 0.069 (n = 150) | +0.430 | 70
|
1 |
California Golden Bears |
−0.364 | 0.022 (n = 150) | +0.386 | 60
|
2 |
Wisconsin Badgers |
−0.134 | 0.226 (n = 150) | +0.361 | 94
|
3 |
Oklahoma State Cowboys |
0.005 | 0.356 (n = 150) | +0.351 | 100
|
4 |
James Madison Dukes |
−0.058 | 0.284 (n = 150) | +0.342 | 98
|
5 |
| Fallers | |||||
Northern Iowa Panthers |
0.270 | −0.296 (n = 150) | −0.566 | 7
|
231 |
Holy Cross Crusaders |
0.279 | −0.204 (n = 150) | −0.484 | 19
|
230 |
Northwestern State Demons |
−0.132 | −0.543 (n = 150) | −0.412 | 0
|
229 |
Pittsburgh Panthers |
−0.062 | −0.471 (n = 150) | −0.409 | 0
|
228 |
Eastern Washington Eagles |
0.146 | −0.228 (n = 150) | −0.374 | 17
|
227 |
| Data: sportsdataverse-data release cfb_rolling_windows | |||||
Related SportsDataverse packages
- sdvplot - the Python plotting package
- sdvplot-js - the JavaScript / TypeScript plotting packages
- cfbfastR - college football
- hoopR - men’s basketball
- wehoop - women’s basketball
- baseballr - baseball
- fastRhockey - hockey
- oddsapiR - betting odds
- sportyR - playing surfaces
- sportsdataverse-py - the Python package
- sportsdataverse-R - the R meta-package

Northern Arizona Lumberjacks
California Golden Bears
Wisconsin Badgers
Oklahoma State Cowboys
James Madison Dukes
Northern Iowa Panthers
Holy Cross Crusaders
Northwestern State Demons
Pittsburgh Panthers
Eastern Washington Eagles