Skip to contents

Get Team Stats

Usage

kp_teamstats(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 stats

col_nametypesdescription
teamcharacterTeam-side label or team identifier.
confcharactercharacter.
off_fg_3_pctnumericOff field goals 3 percentage (0-1 decimal).
off_fg_3_pct_rknumericOff fg 3 pct rk.
off_fg_2_pctnumericOff field goals 2 percentage (0-1 decimal).
off_fg_2_pct_rknumericOff fg 2 pct rk.
off_ft_pctnumericOff free throws percentage (0-1 decimal).
off_ft_pct_rknumericOff ft pct rk.
off_blk_pctnumericOff blocks percentage (0-1 decimal).
off_blk_pct_rknumericOff blk pct rk.
off_stl_pctnumericOff steals percentage (0-1 decimal).
off_stl_pct_rknumericOff stl pct rk.
off_non_stl_pctnumericOff non steals percentage (0-1 decimal).
off_non_stl_pct_rknumericOff non stl pct rk.
off_a_pctnumericOff a percentage (0-1 decimal).
off_a_pct_rknumericOff a pct rk.
off_fg_3a_pctnumericOff field goals 3a percentage (0-1 decimal).
off_fg_3a_pct_rknumericOff fg 3a pct rk.
adj_onumericAdj o.
adj_o_rknumericAdj o rk.
ncaa_seednumericNcaa seed.
yearnumeric4-digit year.
def_fg_3_pctnumericDef field goals 3 percentage (0-1 decimal).
def_fg_3_pct_rknumericDef fg 3 pct rk.
def_fg_2_pctnumericDef field goals 2 percentage (0-1 decimal).
def_fg_2_pct_rknumericDef fg 2 pct rk.
def_ft_pctnumericDef free throws percentage (0-1 decimal).
def_ft_pct_rknumericDef ft pct rk.
def_blk_pctnumericDef blocks percentage (0-1 decimal).
def_blk_pct_rknumericDef blk pct rk.
def_stl_pctnumericDef steals percentage (0-1 decimal).
def_stl_pct_rknumericDef stl pct rk.
def_non_stl_pctnumericDef non steals percentage (0-1 decimal).
def_non_stl_pct_rknumericDef non stl pct rk.
def_a_pctnumericDef a percentage (0-1 decimal).
def_a_pct_rknumericDef a pct rk.
def_fg_3a_pctnumericDef field goals 3a percentage (0-1 decimal).
def_fg_3a_pct_rknumericDef fg 3a pct rk.
adj_dnumericAdj d.
adj_d_rknumericAdj d rk.

Examples

# \donttest{
try(kp_teamstats(min_year = 2019, max_year = 2021))
#>  2026-05-29 23:30:28.438363: Invalid arguments or no team stats data for 2019 - 2021 available!
#>  Args: min_year = 2019, max_year = 2021
#>  Error: subscript out of bounds
#> NULL
# }