do_reb_off_success {BAwiR} | R Documentation |
Check if scoring after offensive rebounds
Description
For each team and player, locate the position of offensive rebounds and check if they resulted in scoring points.
Usage
do_reb_off_success(data, day_num, game_code, team_sel, verbose)
Arguments
data |
Play-by-play prepared data from a given game. |
day_num |
Day number. |
game_code |
Game code. |
team_sel |
One of the teams' names involved in the game. |
verbose |
Logical. Decide if information of the computations must be provided or not. |
Value
List with two data frames, one for the results for the team (stats_team) and the other for the players (stats_player). The team data frame shows the number of offensive rebounds, the number of those that finished in scoring (and the percentage associated) and the total of points scored. The player data frame shows the player who grabbed the offensive rebound, the player who scored and how many points.
Author(s)
Guillermo Vinue
See Also
Examples
df0 <- acb_vbc_cz_pbp_2223
day_num <- unique(acb_vbc_cz_pbp_2223$day)
game_code <- unique(acb_vbc_cz_pbp_2223$game_code)
df1 <- do_prepare_data_or(df0, TRUE, acb_games_2223_info)
df2 <- do_reb_off_success(df1, day_num, game_code, "Valencia Basket", FALSE)
#df2
[Package BAwiR version 1.3.2 Index]