26 open-source packages · R · Python · Node.js · 8 leagues in the warehouse · 120M+ rows of play-by-play · EPA · win probability · ratings models · free and open since 2021

{wehoop} for Women's Basketball

Saiem Gilani

Saiem GilaniMay 19, 2021

2 min read379 words

wehoop

CRAN
status CRAN
downloads Version-Number R-CMD-check Lifecycle:maturing Twitter
Follow Twitter
Follow Twitter
Follow

wehoop is an R package for working with women’s college and professional basketball data. The package has functions to access live play by play and box score data from ESPN with shot locations when available.

A scraping and aggregating interface for ESPN’s women’s college basketball and WNBA statistics. It provides users with the capability to access the API’s game play-by-plays, box scores, standings and results to analyze the data for themselves.

Installation

You can install the CRAN version of wehoop with:

install.packages("wehoop")

You can install the released version of wehoop from GitHub with:

# You can install using the pak package using the following code:
if (!requireNamespace('pak', quietly = TRUE)){
  install.packages('pak')
}
pak::pak("sportsdataverse/wehoop")

Quick Start

WNBA full play-by-play seasons (2002-2026) ~ 1-2 minutes

tictoc::tic()
progressr::with_progress({
  wnba_pbp <- wehoop::load_wnba_pbp()
})
tictoc::toc()

0.94 sec elapsed

93166 rows of WNBA play-by-play data from 241 games.

Women’s college basketball full play-by-play seasons (2004-2026) ~ 2-3 minutes

tictoc::tic()
progressr::with_progress({
  wbb_pbp <- wehoop::load_wbb_pbp()
})
tictoc::toc()

10.58 sec elapsed

2824090 rows of women's college basketball play-by-play data from 6011 games.

ESPN endpoint wrappers

wehoop 3.0.0 ships 80 ESPN basketball endpoint wrappers (39 espn_wbb_* + 41 espn_wnba_*) covering reference and catalog data, team detail, athlete coverage, event-level enrichments (odds, win probability, officials, broadcasts), WNBA-only artifacts (draft, free agents, transactions), and league-wide catalogs. See the ESPN basketball endpoints vignette for a full walkthrough.

Documentation

For more information on the package and function reference, please see the wehoop documentation website.

Breaking Changes

Full News on Releases

Follow the SportsDataverse on Twitter and star this repo

Twitter
Follow

GitHub
stars

Our Authors

Citations

To cite the wehoop R package in publications, use:

BibTex Citation

@misc{hutchinson_gilani_2021_wehoop,
  author = {Saiem Gilani and Geoff Hutchinson},
  title = {wehoop: The SportsDataverse's R Package for Women's Basketball Data.},
  url = {https://wehoop.sportsdataverse.org},
  year = {2021}
}

Share this post: