BAwiR-package {BAwiR}R Documentation

Analysis of Basketball Data

Description

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>.

Details

Package: BAwiR
Type: Package
Version: 1.3.2
Date: 2024-01-09
License: GPL-2
LazyLoad: yes
LazyData: yes

acb_games_1718: ACB games 2017-2018.
acb_games_2223_coach: ACB coaches in the 2022-2023 season.
acb_games_2223_info: ACB games 2022-2023, days and codes.
acb_players_1718: ACB players 2017-2018.
acb_shields: Shields of the ACB teams.
acb_vbc_cz_pbp_2223: ACB play-by-play data, 2022-2023, Valencia Basket-Casademont Zaragoza.
acb_vbc_cz_sl_2223: ACB starting lineups, 2022-2023, Valencia Basket-Casademont Zaragoza.
capit_two_words: Capitalize two-word strings.
do_add_adv_stats: Advanced statistics.
do_clutch_time: Get games with clutch time.
do_EPS: Efficient Points Scored (EPS).
do_four_factors_df: Four factors data frame.
do_ft_fouls: Compute free throw fouls.
do_join_games_bio: Join games and players' info.
do_lineup: Compute ACB lineups.
do_map_nats: Data frame for the nationalities map.
do_OE: Offensive Efficiency (OE).
do_offensive_fouls: Compute offensive fouls.
do_possession: Compute when possessions start.
do_prepare_data: Prepare ACB play-by-play data.
do_prepare_data_or: Prepare data for the offensive rebounds computation.
do_prepare_data_to: Prepare data for the timeouts computation.
do_process_acb_pbp: Processing of the ACB website play-by-play data.
do_reb_off_success: Check if scoring after offensive rebounds.
do_scraping_games: Player game finder data.
do_scraping_rosters: Players profile data.
do_stats: Accumulated or average statistics.
do_stats_per_period: Compute stats per period.
do_stats_teams: Accumulated and average statistics for teams.
do_sub_lineup: Compute ACB sub-lineups.
do_time_out_success: Check if timeouts resulted in scoring.
eurocup_games_1718: Eurocup games 2017-2018.
eurocup_players_1718: Eurocup players 2017-2018.
euroleague_games_1718: Euroleague games 2017-2018.
euroleague_players_1718: Euroleague players 2017-2018.
get_barplot_monthly_stats: Barplots with monthly stats.
get_bubble_plot: Basketball bubble plot.
get_four_factors_plot: Four factors plot.
get_games_rosters: Get all games and rosters.
get_heatmap_bb: Basketball heatmap.
get_map_nats: Nationalities map.
get_pop_pyramid: ACB population pyramid.
get_shooting_plot: Shooting plot.
get_similar_players: Similar players to archetypoids.
get_similar_teams: Similar teams to archetypoids.
get_stats_seasons: Season-by-season stats.
get_table_results: League cross table.
join_players_bio_age_acb: Join ACB games and players' info.
join_players_bio_age_euro: Join Euroleague and Eurocup games and players' info.
scraping_games_acb: ACB player game finder data.
scraping_games_acb_old: Old ACB player game finder data.
scraping_games_euro: Euroleague and Eurocup player game finder data.
scraping_rosters_acb: ACB players' profile.
scraping_rosters_euro: Euroleague and Eurocup players' profile.

Author(s)

Guillermo Vinue <Guillermo.Vinue@uv.es>, <guillermovinue@gmail.com>

References

Vinue, G., (2020). A Web Application for Interactive Visualization of European Basketball Data, Big Data 8(1), 70-86. http://doi.org/10.1089/big.2018.0124, https://www.uv.es/vivigui/AppEuroACB.html


[Package BAwiR version 1.3.2 Index]