Package: BAwiR 1.3.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 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>.

Authors:Guillermo Vinue

BAwiR_1.3.2.tar.gz
BAwiR_1.3.2.tar.gz(r-4.5-noble)BAwiR_1.3.2.tar.gz(r-4.4-noble)
BAwiR_1.3.2.tgz(r-4.4-emscripten)BAwiR_1.3.2.tgz(r-4.3-emscripten)
BAwiR.pdf |BAwiR.html
BAwiR/json (API)
NEWS

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

Peer review:

Datasets:

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

2.85 score 1 stars 35 scripts 461 downloads 43 exports 117 dependencies

Last updated 12 months agofrom:e8fad48e65. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 05 2024
R-4.5-linuxOKDec 05 2024

Exports:capit_two_wordsdo_add_adv_statsdo_clutch_timedo_EPSdo_four_factors_dfdo_ft_foulsdo_join_games_biodo_lineupdo_map_natsdo_OEdo_offensive_foulsdo_possessiondo_prepare_datado_prepare_data_ordo_prepare_data_todo_process_acb_pbpdo_reb_off_successdo_scraping_gamesdo_scraping_rostersdo_statsdo_stats_per_perioddo_stats_teamsdo_sub_lineupdo_time_out_successget_barplot_monthly_statsget_bubble_plotget_four_factors_plotget_games_rostersget_heatmap_bbget_map_natsget_pop_pyramidget_shooting_plotget_similar_playersget_similar_teamsget_stats_seasonsget_table_resultsjoin_players_bio_age_acbjoin_players_bio_age_euroscraping_games_acbscraping_games_acb_oldscraping_games_euroscraping_rosters_acbscraping_rosters_euro

Dependencies:abindadditivityTestsAnthropometryarchetypesaskpassbase64encBHbiclustbitbit64bslibcachemclassclicliprclustercolorspacecpp11crayoncurlddalphaDEoptimRdigestdotCall64dplyrevaluatefansifarverfastclusterfastmapfieldsflexclustFNNfontawesomefsgenericsgeometryggplot2gluegtablehighrhmshtmltoolshtmlwidgetshttrICGEisobandjquerylibjsonliteknitrlabelinglatticelifecyclelinproglpSolvelubridatemagicmagrittrmapsMASSMatrixmemoisemgcvmimeminpack.lmmodeltoolsmunsellnlmennlsopensslpillarpkgconfigplyrprettyunitsprogresspurrrqdapRegexR6rappdirsrasterRColorBrewerRcppRcppProgressreadrreshape2rglrlangrmarkdownrobustbaservestrworldmapsassscalesscatterplot3dselectrsfsmiscshapesspspamstringistringrsysterratibbletidyrtidyselecttimechangetinytextzdbutf8vctrsviridisLitevroomwithrxfunxml2yaml

Analysis of Spanish play-by-play data

Rendered fromBAwiR_pbp.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2023-09-26
Started: 2023-09-26

Visualization of European basketball data

Rendered fromBAwiR.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2023-09-26
Started: 2018-09-10

Readme and manuals

Help Manual

Help pageTopics
Analysis of Basketball DataBAwiR-package
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
Shields of the ACB teamsacb_shields
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
Get games with clutch timedo_clutch_time
Efficient Points Scored (EPS)do_EPS
Four factors data framedo_four_factors_df
Compute free throw foulsdo_ft_fouls
Join games and players' infodo_join_games_bio
Compute ACB lineupsdo_lineup
Data frame for the nationalities mapdo_map_nats
Offensive Efficiency (OE)do_OE
Compute offensive foulsdo_offensive_fouls
Compute when possessions startdo_possession
Prepare ACB play-by-play datado_prepare_data
Prepare data for the offensive rebounds computationdo_prepare_data_or
Prepare data for the timeouts computationdo_prepare_data_to
Processing of the ACB website play-by-play datado_process_acb_pbp
Check if scoring after offensive reboundsdo_reb_off_success
Player game finder datado_scraping_games
Players profile datado_scraping_rosters
Accumulated or average statisticsdo_stats
Compute stats per perioddo_stats_per_period
Accumulated and average statistics for teamsdo_stats_teams
Compute ACB sub-lineupsdo_sub_lineup
Check if timeouts resulted in scoringdo_time_out_success
Eurocup games 2017-2018eurocup_games_1718
Eurocup players 2017-2018eurocup_players_1718
Euroleague games 2017-2018euroleague_games_1718
Euroleague players 2017-2018euroleague_players_1718
Barplots with monthly statsget_barplot_monthly_stats
Basketball bubble plotget_bubble_plot
Four factors plotget_four_factors_plot
Get all games and rostersget_games_rosters
Basketball heatmapget_heatmap_bb
Nationalities mapget_map_nats
Population pyramidget_pop_pyramid
Shooting plotget_shooting_plot
Similar players to archetypoidsget_similar_players
Similar teams to archetypoidsget_similar_teams
Season-by-season statsget_stats_seasons
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 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