require(knitr) if (!requireNamespace('pacman')){ install.packages('pacman') } pacman::p_load(wehoop, magick, grid, dplyr, lubridate) # You can install using the pacman package using the following code:
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.
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 pacman package using the following code: if (!requireNamespace('pacman', quietly = TRUE)){ install.packages('pacman') } pacman::p_load_current_gh("sportsdataverse/wehoop", dependencies = TRUE, update = TRUE)
r wehoop::most_recent_wnba_season()
) ~ 1-2 minutestictoc::tic() progressr::with_progress({ wnba_pbp <- wehoop::load_wnba_pbp() }) tictoc::toc()
glue::glue("{nrow(wnba_pbp)} rows of WNBA play-by-play data from {length(unique(wnba_pbp$game_id))} games.")
r wehoop::most_recent_wbb_season()
) ~ 2-3 minutestictoc::tic() progressr::with_progress({ wbb_pbp <- wehoop::load_wbb_pbp() }) tictoc::toc()
glue::glue("{nrow(wbb_pbp)} rows of women's college basketball play-by-play data from {length(unique(wbb_pbp$game_id))} games.")
For more information on the package and function reference, please see the wehoop
documentation website.
To cite the wehoop
R package in publications, use:
BibTex Citation
@misc{hutchinson_gilani_2021_wehoop, title = {wehoop: Access Women’s Basketball Play by Play Data}, url = {http://doi.org/10.32614/CRAN.package.wehoop}, DOI = {10.32614/cran.package.wehoop}, journal = {CRAN: Contributed Packages}, publisher = {The R Foundation}, author = {Gilani, Saiem and Hutchinson, Geoffery}, year = {2021}, month = nov }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.