Free Access Week - Data Engineering + BI
Data engineering and BI courses are free!
Free Access Week - Jun 2-8

BAwiR (version 1.3.4)

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 , 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) and Vinue (2024) .

Copy Link

Version

Install

install.packages('BAwiR')

Monthly Downloads

366

Version

1.3.4

License

GPL (>= 2)

Maintainer

Guillermo Vinue

Last Published

February 14th, 2025

Functions in BAwiR (1.3.4)

get_shooting_plot

Shooting plot
acb_games_2223_info

ACB games 2022-2023, days and codes.
do_time_out_success

Check if timeouts resulted in scoring
do_lineup

Compute ACB lineups
acb_vbc_cz_pbp_2223

ACB play-by-play data, 2022-2023, Valencia Basket-Casademont Zaragoza
acb_games_2223_coach

ACB coaches in the 2022-2023 season.
do_prepare_data

Prepare ACB play-by-play data
get_similar_teams

Similar teams to archetypoids
join_players_bio_age_acb

Join ACB games and players' info
do_OE

Offensive Efficiency (OE)
get_heatmap_bb

Basketball heatmap
do_add_adv_stats

Advanced statistics
do_join_games_bio

Join games and players' info
do_prepare_data_or

Prepare data for the offensive rebounds computation
do_sub_lineup

Compute ACB sub-lineups
get_map_nats

Nationalities map
get_games_rosters

Get all games and rosters
acb_vbc_cz_sl_2223

ACB starting lineups, 2022-2023, Valencia Basket-Casademont Zaragoza
acb_players_1718

ACB players 2017-2018
do_scraping_rosters

Players profile data
do_ft_fouls

Compute free throw fouls
join_players_bio_age_euro

Join Euroleague and Eurocup games and players' info
get_barplot_monthly_stats

Barplots with monthly stats
get_bubble_plot

Basketball bubble plot
scraping_games_euro

Euroleague and Eurocup player game finder data
do_stats

Accumulated or average statistics
get_four_factors_plot

Four factors plot
get_stats_seasons

Season-by-season stats
scraping_rosters_euro

Euroleague and Eurocup players' profile
acb_shields

Shields of the ACB teams
get_pop_pyramid

Population pyramid
BAwiR-package

Analysis of Basketball Data
acb_games_1718

ACB games 2017-2018
do_offensive_fouls

Compute offensive fouls
eurocup_games_1718

Eurocup games 2017-2018
do_possession

Compute when possessions start
do_prepare_data_to

Prepare data for the timeouts computation
do_process_acb_pbp

Processing of the ACB website play-by-play data
capit_two_words

Capitalize two-word strings
do_EPS

Efficient Points Scored (EPS)
get_similar_players

Similar players to archetypoids
do_stats_per_period

Compute stats per period
do_stats_teams

Accumulated and average statistics for teams
do_map_nats

Data frame for the nationalities map
eurocup_players_1718

Eurocup players 2017-2018
scraping_rosters_acb

ACB players' profile
do_scraping_games

Player game finder data
get_table_results

League cross table
do_clutch_time

Get games with clutch time
euroleague_games_1718

Euroleague games 2017-2018
do_reb_off_success

Check if scoring after offensive rebounds
do_four_factors_df

Four factors data frame
scraping_games_acb

ACB player game finder data
euroleague_players_1718

Euroleague players 2017-2018
scraping_games_acb_old

Old ACB player game finder data