do_prepare_data_or {BAwiR}R Documentation

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)

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.

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.

Note

1. Actions are given in Spanish. A bilingual basketball vocabulary (Spanish/English) is provided in https://www.uv.es/vivigui/docs/basketball_dictionary.xlsx.

2. The game_code column allows us to detect the source website, for example, https://jv.acb.com/es/103389/jugadas.

Author(s)

Guillermo Vinue

See Also

do_reb_off_success

Examples

df0 <- acb_vbc_cz_pbp_2223

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


[Package BAwiR version 1.3.2 Index]