do_ft_fouls | R Documentation |
Compute how many 1-,2- and 3-free throw fouls has committed or received every player.
do_ft_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_ft_fouls_x: Number of free throw fouls committed or received. n_ft_x: Number of free throws given or got. n_ft_char: Type of free throw. Options can be 1TL, 2TL and 3TL. n: Number of free throws of each type.
Guillermo Vinue
df01 <- do_ft_fouls(acb_vbc_cz_pbp_2223, "comm")
#df01
df02 <- do_ft_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.