Package: BAwiR 1.5.2

Guillermo Vinue

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 <https://www.euroleaguebasketball.net/euroleague/>, <https://www.euroleaguebasketball.net/eurocup/> and <https://www.acb.com/>, following the instructions of their respectives robots.txt files, when available. Box score data are available for the three leagues. Play-by-play and spatial shooting 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, offensive rebounds and different types of shooting charts. Please see Vinue (2020) <doi:10.1089/big.2018.0124> and Vinue (2024) <doi:10.1089/big.2023.0177>.

Authors:Guillermo Vinue [aut, cre]

BAwiR_1.5.2.tar.gz
BAwiR_1.5.2.tar.gz(r-4.7-any)BAwiR_1.5.2.tar.gz(r-4.6-any)
BAwiR_1.5.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
BAwiR/json (API)

# Install 'BAwiR' in R:
install.packages('BAwiR', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

4.31 score 2 stars 43 scripts 611 downloads 68 exports 124 dependencies

Last updated from:d6f774b98a. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK232
source / vignettesOK257
linux-release-x86_64OK241
wasm-releaseOK195

Exports:capit_two_wordsdo_add_adv_statsdo_best_zonesdo_clutch_timedo_divide_court_zonesdo_EPSdo_filter_datado_four_factors_dfdo_four_factors_df_lineupdo_ft_foulsdo_join_games_biodo_lineupdo_lineup_metricsdo_map_natsdo_OEdo_offensive_foulsdo_possessiondo_possession_statsdo_possession_stats_lineupdo_prepare_datado_prepare_data_gradientdo_prepare_data_ordo_prepare_data_todo_preproc_perioddo_process_acb_pbpdo_reb_off_successdo_rpackage_statsdo_scrape_days_acbdo_scrape_shots_acbdo_scraping_gamesdo_scraping_rostersdo_shots_statsdo_statsdo_stats_per_perioddo_stats_teamsdo_study_lineupdo_sub_lineupdo_time_out_successdo_time_out_success_alterndo_usagedo_violin_box_plotsdo_viz_shots_gradientdo_viz_shots_scatterdo_volume_threesget_bubble_plotget_donut_usageget_donut_usage_actionget_four_factors_plotget_games_rostersget_heatmap_bbget_map_natsget_net_rtg_on_offget_plot_monthly_statsget_pop_pyramidget_roster_age_profileget_shooting_plotget_similar_playersget_similar_teamsget_stats_seasonsget_stickerget_table_resultsjoin_players_bio_age_acbjoin_players_bio_age_euroscraping_games_acbscraping_games_acb_oldscraping_games_euroscraping_rosters_acbscraping_rosters_euro

Dependencies:abindaskpassassertthatbackportsbootbroomcachemcarcarDataclicliprcodetoolscolorspacecorrplotcowplotcpp11crayoncredentialscurlDerivdescdigestdoBydplyrfarverfastmapforecastFormulafracdifffsfuturefuture.applygenericsgertggplot2ggpubrggrepelggsciggsignifgitcredsglobalsgluegridExtragtablehmshttrhttr2iniisobandjanitorjsonlitelabelinglatticelifecyclelistenvlme4lmtestlubridatemagrittrMASSMatrixMatrixModelsmemoisemgcvmimeminqamodelrnlmenloptrnnetnumDerivopensslparallellypbkrtestpillarpkgconfigplyrpolitepolynompurrrquantregR6rappdirsratelimitrrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasreshape2rlangrobotstxtrprojrootrstatixrstudioapirvestS7scalesselectrsnakecaseSparseMspiderbarstringistringrsurvivalsystibbletidyrtidyselecttimechangetimeDateurcausethisutf8vctrsviridisLitewhiskerwithrxml2yamlzipzoo

Analysis of Spanish play-by-play data

Last update: 2026-02-27
Started: 2023-09-26

Analysis of Spanish spatial shooting data

Last update: 2026-02-27
Started: 2025-10-22

Visualization of European basketball data

Last update: 2025-12-09
Started: 2018-09-10

Readme and manuals

Help Manual

Help pageTopics
ACB age profile, 2025-2026, Valencia Basketacb_age_profile_data_2526
Lineups in a given game.acb_combs
ACB games 2017-2018acb_games_1718
ACB coaches in the 2022-2023 season.acb_games_2223_coach
ACB games 2022-2023, days and codes.acb_games_2223_info
ACB players 2017-2018acb_players_1718
ACB players 2024-2025acb_players_2425
Shields of the ACB teamsacb_shields
ACB shooting data, 2024-2025acb_shooting_data_2425
ACB sticker data, 2025-2026acb_sticker_data_2526
ACB usage action data, 2025-2026acb_usage_act_data_2526
ACB usage data, 2025-2026acb_usage_data_2526
ACB play-by-play data, 2022-2023, Valencia Basket-Casademont Zaragozaacb_vbc_cz_pbp_2223
ACB starting lineups, 2022-2023, Valencia Basket-Casademont Zaragozaacb_vbc_cz_sl_2223
Capitalize two-word stringscapit_two_words
Advanced statisticsdo_add_adv_stats
Best players by zonedo_best_zones
Get games with clutch timedo_clutch_time
Zones of the basketball courtdo_divide_court_zones
Efficient Points Scored (EPS)do_EPS
Filter shooting datado_filter_data
Four factors for teamsdo_four_factors_df
Four factors for lineupsdo_four_factors_df_lineup
Compute free throw foulsdo_ft_fouls
Join games and players' infodo_join_games_bio
Compute ACB lineupsdo_lineup
Lineups-related informationdo_lineup_metrics
Data frame for the nationalities mapdo_map_nats
Offensive Efficiency (OE)do_OE
Compute offensive foulsdo_offensive_fouls
Compute when possessions startdo_possession
Possessions-related statistics for teamsdo_possession_stats
Possessions-related statistics for lineupsdo_possession_stats_lineup
Prepare ACB play-by-play datado_prepare_data
Prepare the data for the gradient shooting plotsdo_prepare_data_gradient
Prepare data for the offensive rebounds computationdo_prepare_data_or
Prepare data for the timeouts computationdo_prepare_data_to
Data preprocessing for periodsdo_preproc_period
Processing of the ACB website play-by-play datado_process_acb_pbp
Check if scoring after offensive reboundsdo_reb_off_success
R package downloadsdo_rpackage_stats
ACB day game codesdo_scrape_days_acb
ACB shooting datado_scrape_shots_acb
Player game finder datado_scraping_games
Players profile datado_scraping_rosters
Shots statisticsdo_shots_stats
Accumulated or average statisticsdo_stats
Compute stats per perioddo_stats_per_period
Accumulated and average statistics for teamsdo_stats_teams
Compute lineups with their statisticsdo_study_lineup
Compute sub-lineupsdo_sub_lineup
Check if timeouts resulted in scoringdo_time_out_success
Alternative timeoutsdo_time_out_success_altern
Players' usagedo_usage
Plots of data distributionsdo_violin_box_plots
Visualization of the shots statistics with advanced featuresdo_viz_shots_gradient
Visualization of the shots statisticsdo_viz_shots_scatter
Volume of three-point shotsdo_volume_threes
Eurocup games 2017-2018eurocup_games_1718
Eurocup players 2017-2018eurocup_players_1718
Euroleague games 2017-2018euroleague_games_1718
Euroleague players 2017-2018euroleague_players_1718
Basketball bubble plotget_bubble_plot
Donut chart usage possessionsget_donut_usage
Donut chart usage possessions actionget_donut_usage_action
Four factors plotget_four_factors_plot
Get all games and rostersget_games_rosters
Basketball heatmapget_heatmap_bb
Nationalities mapget_map_nats
Net Rating On/Offget_net_rtg_on_off
Monthly statsget_plot_monthly_stats
Population pyramidget_pop_pyramid
Roster age profileget_roster_age_profile
Shooting plotget_shooting_plot
Similar players to archetypoidsget_similar_players
Similar teams to archetypoidsget_similar_teams
Season-by-season statsget_stats_seasons
Player's stickerget_sticker
League cross tableget_table_results
Join ACB games and players' infojoin_players_bio_age_acb
Join Euroleague and Eurocup games and players' infojoin_players_bio_age_euro
ACB players 2024-2025metrics_player_zone
ACB player game finder datascraping_games_acb
Old ACB player game finder datascraping_games_acb_old
Euroleague and Eurocup player game finder datascraping_games_euro
ACB players' profilescraping_rosters_acb
Euroleague and Eurocup players' profilescraping_rosters_euro