View source: R/do_prepare_data_or.R
do_prepare_data_or | R Documentation |
The computation of the scoring after offensive rebounds requires a specifical data preparation. This function does this data processing.
do_prepare_data_or(data, rm_overtime, data_ginfo)
data |
Source play-by-play data from a given game. |
rm_overtime |
Logical. Decide to remove overtimes or not. |
data_ginfo |
Games' basic information. |
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.
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.
Guillermo Vinue
do_reb_off_success
df0 <- acb_vbc_cz_pbp_2223
df1 <- do_prepare_data_or(df0, TRUE, acb_games_2223_info)
#df1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.