Skip to main content

wehoop

Version-Number R-CMD-check Lifecycle:maturing 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 released version of wehoop from GitHub with:

# You can install using the pacman package using the following code:if (!requireNamespace('pacman', quietly = TRUE)){  install.packages('pacman')}pacman::p_load_current_gh("saiemgilani/wehoop")
# if you would prefer devtools installationif (!requireNamespace('devtools', quietly = TRUE)){  install.packages('devtools')}# Alternatively, using the devtools package:devtools::install_github(repo = "saiemgilani/wehoop")

Quick Start#

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

# You can install using the pacman package using the following code:if (!requireNamespace('pacman', quietly = TRUE)){  install.packages('pacman')}pacman::p_load_current_gh("saiemgilani/wehoop")future::plan("multisession")tictoc::tic()progressr::with_progress({  pbp <- wehoop::load_wnba_pbp(2002:2021)})tictoc::toc()## 10.36 sec elapsedlength(unique(pbp$game_id))nrow(pbp)

Women’s college basketball full play-by-play seasons (2002-2021) ~ 2-3 minutes#

# You can install using the pacman package using the following code:if (!requireNamespace('pacman', quietly = TRUE)){  install.packages('pacman')}pacman::p_load_current_gh("saiemgilani/wehoop")future::plan("multisession")tictoc::tic()progressr::with_progress({  pbp <- wehoop::load_wbb_pbp(2002:2021)})tictoc::toc()
## 73.39 sec elapsedlength(unique(pbp$game_id))nrow(pbp)

Documentation#

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

Breaking Changes#

Full News on Releases

Our Authors

Citations#

To cite the wehoop R package in publications, use:

BibTex Citation

@misc{hutchingsongilani2021wehoop,  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}}