Skip to contents

Get Team Points Distribution

Usage

kp_pointdist(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 team points distributions

col_nametypesdescription
teamcharacterTeam-side label or team identifier.
confcharactercharacter.
off_ft_pctnumericOff free throws percentage (0-1 decimal).
off_ft_pct_rknumericOff ft pct rk.
off_fg_2_pctnumericOff field goals 2 percentage (0-1 decimal).
off_fg_2_pct_rknumericOff fg 2 pct rk.
off_fg_3_pctnumericOff field goals 3 percentage (0-1 decimal).
off_fg_3_pct_rknumericOff fg 3 pct rk.
def_ft_pctnumericDef free throws percentage (0-1 decimal).
def_ft_pct_rknumericDef ft pct rk.
def_fg_2_pctnumericDef field goals 2 percentage (0-1 decimal).
def_fg_2_pct_rknumericDef fg 2 pct rk.
def_fg_3_pctnumericDef field goals 3 percentage (0-1 decimal).
def_fg_3_pct_rknumericDef fg 3 pct rk.
ncaa_seednumericNcaa seed.
yearnumeric4-digit year.

Examples

# \donttest{
try(kp_pointdist(min_year = 2020, max_year = 2021))
#>  2026-08-06 04:00:53.929806: Invalid arguments or no point distribution data for 2020 - 2021 available!
#>  Args: min_year = 2020, max_year = 2021
#>  Error: HTTP 429 Too Many Requests.
#> NULL
# }