Skip to content

R Packages

The SportsDataverse R package hex wall

  • {sportsdataverse} - The SportsDataverse meta-package for R — loads the core SDV R packages in one call · cheat sheet
  • {cfbfastR} - An R package to quickly obtain clean and tidy college football play by play data (Data sources: CollegeFootballData, ESPN) · cheat sheet
  • {hoopR} - A utility to quickly obtain clean and tidy men's · cheat sheet basketball play by play data (Data sources: NBA Stats API, ESPN, KenPom)
  • {wehoop} - A utility to quickly obtain clean and tidy women's · cheat sheet basketball play by play data (Data sources: WNBA Stats API, ESPN)
  • {baseballr} - Provides numerous utilities for acquiring and analyzing · cheat sheet baseball data from online sources (Data sources: Baseball Reference, FanGraphs, MLB Stats API, NCAA)
  • {fastRhockey} - A utility to scrape and load hockey play-by-play data and statistics (Data sources: NHL, PWHL) · cheat sheet
  • {sportyR} - Create scaled 'ggplot' representations of playing surfaces. Playing surfaces are drawn pursuant to rule-book specifications. · cheat sheet
  • {ggshakeR} - Analysis and visualization R package that works with publically available soccer data (Compatible data sources: FB Reference, StatsBomb, Understat)
  • {soccerAnimate} - Create 2D animations of soccer tracking data (Compatible data sources: Metrica Sports, Catapult)
  • {oddsapiR} - Access sports odds from the Odds API (Data sources: The Odds API) · cheat sheet
  • {mlbplotR} - Create 'ggplot2' and 'gt' Visuals with Major League Baseball Logos · cheat sheet
  • {cfbplotR} - A set of functions to visualize college football teams in 'ggplot2' · cheat sheet
  • {cfb4th} - A set of functions to analyze NCAA Football 4th Downs · cheat sheet
  • {cfbseedR} - Simulate and evaluate college football seasons: conference tiebreakers, CFP seeding and season simulations (Data sources: cfbfastR, CollegeFootballData) · cheat sheet
  • {softballR} - Scrapes and cleans college softball data (Data sources: NCAA, ESPN)
  • {nwslR} - Compiles dataset for the National Women's Soccer League (NWSL)
  • {usfootballR} - MLS and NWSL play-by-play data (Data sources: ESPN)
  • {recruitR} - A college football recruiting package (Data sources: CollegeFootballData, 247sports)
  • {puntr} - Package for puntalytics
  • {chessR} - A set of functions to enable users to extract chess game data from popular chess sites (Data sources: Lichess, Chess.com)

Python Packages python

PyPI PyPI - Down
loads

Documentation · Cheat sheet (PDF)

  • sportsdataverse - The Python package covering 29 leagues across ESPN, NBA/WNBA Stats, HockeyTech, stats.ncaa.org, MLB Statcast and more · cheat sheet
  • sportypy - Draw regulation playing surfaces in Python, the companion to sportyR · cheat sheet
  • collegebaseball - College baseball data and analysis (Data sources: NCAA, Boyd's World)
  • nwslpy - National Women's Soccer League data in Python

npm npm NPM

Documentation · Cheat sheet (PDF)

Claude Code plugin

The SportsDataverse ships a Claude Code plugin — sdv-toolkit — with skills, agents, hooks, and an MCP server encoding the SDV engineering conventions (codegen-safe edit guards, multi-provider league scaffolding, returns-schema + docstring auditors, polars-1.x / parser-contract reviewers, and R pkgdown/roxygen helpers).

claude plugin marketplace add sportsdataverse/sportsdataverse
claude plugin install sdv-toolkit@sportsdataverse

Cheat sheets

Printable one-page references for every package — the function families, the loaders, and what each one returns. Free to download, print and hand out; every sheet ships light and dark on US Letter landscape.

Browse them all at sportsdataverse.org/cheatsheets

Sheet Covers
sportsdataverse (R) the R metapackage
sportsdataverse (Python) the Python package, 6 pages
sportsdataverse (Node.js) the JavaScript client
cfbfastR college football
hoopR men's basketball, NBA + NCAA
wehoop women's basketball, WNBA + NCAA
baseballr baseball
fastRhockey hockey, NHL + PWHL
oddsapiR sportsbook odds
cfbplotR · cfb4th · cfbseedR the college football toolkit
sportyR playing surfaces in R
sportypy playing surfaces in Python
mlbplotR MLB logos for ggplot2 + gt

About the SportsDataverse

The first conversation on the SportsDataverse projects happened at the Carnegie Mellon Sports Analytics Conference. The paper our lead engineer, Saiem Gilani, wrote for the conference was selected as the winner for the Data and Software contribution, Open Track for their reproducible research competition.

The conference materials can be found here:

Connect with us:

sportsdataverse cfbfastR saiemgilani

ko-fi

DigitalOcean Referral Badge

Popular repositories Loading

  1. hoopR hoopR Public

    An R package to quickly obtain clean and tidy men's basketball play by play data.

    R 144 26

  2. sportyR sportyR Public

    R package for drawing regulation playing surfaces for several sports

    R 118 11

  3. sportsdataverse-py sportsdataverse-py Public

    sportsdataverse python package

    Python 117 15

  4. cfbfastR cfbfastR Public

    An R package to quickly obtain clean and tidy college football play by play data

    R 110 14

  5. sportsdataverse-js sportsdataverse-js Public

    Retrieves sports data from a popular sports website as well as from the NCAA website, with support for NBA, WNBA, NFL, NHL, College Football and mens and womens college basketball,

    TypeScript 84 15

  6. wehoop wehoop Public

    An R package to quickly obtain clean and tidy women's basketball play by play data.

    R 51 7

Repositories

Showing 10 of 78 repositories

Top languages

Loading…

Most used topics

Loading…