Learn R Programming

BAwiR (version 1.3.4)

do_add_adv_stats: Advanced statistics

Description

This function adds to the whole data frame the advanced statistics for every player in every game.

Usage

do_add_adv_stats(df)

Value

Data frame.

Arguments

df

Data frame with the games and the players info.

Author

Guillermo Vinue

Details

The advanced statistics computed are as follows:

  • GameSc: Game Score.

  • PIE: Player Impact Estimate.

  • EFGPerc: Effective Field Goal Percentage.

  • ThreeRate: Three points attempted regarding the total field goals attempted.

  • FRate: Free Throws made regarding the total field goals attempted.

  • STL_TOV: Steal to Turnover Ratio.

  • AST_TOV: Assist to Turnover Ratio.

  • PPS: Points Per Shot.

  • OE: Offensive Efficiency.

  • EPS: Efficient Points Scored.

The detailed definition of some of these stats can be found at https://www.basketball-reference.com/about/glossary.html and https://www.nba.com/stats/help/glossary/.

See Also

do_OE, do_EPS

Examples

Run this code
df <- do_join_games_bio("ACB", acb_games_1718, acb_players_1718)
df1 <- do_add_adv_stats(df)
          

Run the code above in your browser using DataLab