Learn R Programming

BAwiR (version 1.3.4)

do_prepare_data_or: Prepare data for the offensive rebounds computation

Description

The computation of the scoring after offensive rebounds requires a specifical data preparation. This function does this data processing.

Usage

do_prepare_data_or(data, rm_overtime, data_ginfo)

Value

Data frame. Each row represents the action happened in the game. The points column is added to transform the action that finished in scoring into numbers.

Arguments

data

Source play-by-play data from a given game.

rm_overtime

Logical. Decide to remove overtimes or not.

data_ginfo

Games' basic information.

Author

Guillermo Vinue

See Also

do_reb_off_success

Examples

Run this code
df0 <- acb_vbc_cz_pbp_2223

df1 <- do_prepare_data_or(df0, TRUE, acb_games_2223_info)
#df1                     

Run the code above in your browser using DataLab