BAwiR: Analysis of Basketball Data

Collection of tools to work with European basketball data. Functions available are related to friendly web scraping, data management and visualization. Data were obtained from <>, <> and <>, following the instructions of their respectives robots.txt files, when available. Box score data are available for the three leagues. Play-by-play data are also available for the Spanish league. Methods for analysis include a population pyramid, 2D plots, circular plots of players' percentiles, plots of players' monthly/yearly stats, team heatmaps, team shooting plots, team four factors plots, cross-tables with the results of regular season games, maps of nationalities, combinations of lineups, possessions-related variables, timeouts, performance by periods, personal fouls and offensive rebounds. Please see Vinue (2020) <doi:10.1089/big.2018.0124>.

Version: 1.3.2
Depends: R (≥ 3.5.0)
Imports: Anthropometry, plyr, dplyr, ggplot2, grid, httr, lubridate, magrittr, purrr, qdapRegex, readr, reshape2, rvest, rworldmap, scales, stringi, stringr, tibble, tidyr, xml2
Suggests: knitr, markdown, rmarkdown
Published: 2024-01-09
DOI: 10.32614/CRAN.package.BAwiR
Author: Guillermo Vinue
Maintainer: Guillermo Vinue <Guillermo.Vinue at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: NEWS
In views: SportsAnalytics
CRAN checks: BAwiR results


Reference manual: BAwiR.pdf
Vignettes: Visualization of European basketball data
Analysis of Spanish play-by-play data


Package source: BAwiR_1.3.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): BAwiR_1.3.2.tgz, r-oldrel (arm64): BAwiR_1.3.2.tgz, r-release (x86_64): BAwiR_1.3.2.tgz, r-oldrel (x86_64): BAwiR_1.3.2.tgz
Old sources: BAwiR archive


Please use the canonical form to link to this page.