Skip to contents

Get 2-Foul Participation Stats

Usage

kp_foul_trouble(min_year, max_year = most_recent_mbb_season())

Arguments

min_year

First year of data to pull

max_year

Last year of data to pull

Value

Returns a tibble of foul participation stats

col_nametypesdescription
teamcharacterTeam-side label or team identifier.
confcharactercharacter.
two_foul_particpation_pctnumericTwo foul particpation percentage (0-1 decimal).
two_foul_particpation_pct_rknumericTwo foul particpation pct rk.
adj2fpnumericAdj2fp.
adj2fp_rknumericAdj2fp rk.
two_foul_total_timecharacterTime / clock value.
two_foul_total_time_rkcharacterTwo foul total time rk.
two_foul_time_oncharacterTwo foul time on.
two_foul_time_on_rkcharacterTwo foul time on rk.
bench_pctnumericBench percentage (0-1 decimal).
bench_pct_rknumericBench pct rk.
ncaa_seednumericNcaa seed.
yearinteger4-digit year.

Examples

# \donttest{
try(kp_foul_trouble(min_year = 2020, max_year = most_recent_mbb_season()))
#>  2026-08-06 04:00:51.815764: Invalid arguments or no foul trouble data for 2020 - 2026 available!
#>  Args: min_year = 2020, max_year = 2026
#>  Error: HTTP 403 Forbidden.
#> NULL
# }