View source: R/do_shots_stats.R
| do_shots_stats | R Documentation |
Compute both the total and by zone two-point and threes statistics.
do_shots_stats(data_filter, data_shots_zones)
data_filter |
Shooting filtered data obtained with |
data_shots_zones |
Shooting data with the court zones. |
A list with the following three elements:
all_shots: Shooting data frame associated with the filters given to the function.
summary_shots: Summary of the shots as a whole.
summary_shots_zone: Summary of the shots by zone.
Guillermo Vinue
do_divide_court_zones, do_filter_data
## Not run:
df0 <- do_divide_court_zones(acb_shooting_data_2425)
df1 <- do_filter_data(df0, "2024-2025", "", "", "", "", "")
shots_stats <- do_shots_stats(df1, df0)
all_shots <- shots_stats$all_shots
summary_shots <- shots_stats$summary_shots
summary_shots_zone <- shots_stats$summary_shots_zone
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.