View source: R/do_offensive_fouls.R
do_offensive_fouls | R Documentation |
Compute how many offensive fouls has committed or received every player.
do_offensive_fouls(data, type)
data |
Play-by-play data. |
type |
Either 'comm' (for committed) or 'rec' (for received). |
Data frame with the following columns:
team: Name of the team. player: Name of the player. n_offensive_fouls_x: Number of offensive fouls.
Guillermo Vinue
df01 <- do_offensive_fouls(acb_vbc_cz_pbp_2223, "comm")
#df01
df02 <- do_offensive_fouls(acb_vbc_cz_pbp_2223, "rec")
#df02
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.