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_nametypes
teamcharacter
confcharacter
off_fg_3_pctnumeric
off_fg_3_pct_rknumeric
off_fg_2_pctnumeric
off_fg_2_pct_rknumeric
off_ft_pctnumeric
off_ft_pct_rknumeric
off_blk_pctnumeric
off_blk_pct_rknumeric
off_stl_pctnumeric
off_stl_pct_rknumeric
off_non_stl_pctnumeric
off_non_stl_pct_rknumeric
off_a_pctnumeric
off_a_pct_rknumeric
off_fg_3a_pctnumeric
off_fg_3a_pct_rknumeric
adj_onumeric
adj_o_rknumeric
ncaa_seednumeric
yearnumeric
def_fg_3_pctnumeric
def_fg_3_pct_rknumeric
def_fg_2_pctnumeric
def_fg_2_pct_rknumeric
def_ft_pctnumeric
def_ft_pct_rknumeric
def_blk_pctnumeric
def_blk_pct_rknumeric
def_stl_pctnumeric
def_stl_pct_rknumeric
def_non_stl_pctnumeric
def_non_stl_pct_rknumeric
def_a_pctnumeric
def_a_pct_rknumeric
def_fg_3a_pctnumeric
def_fg_3a_pct_rknumeric
adj_dnumeric
adj_d_rknumeric

See also

Examples

# \donttest{
   try(kp_teamstats(min_year = 2019, max_year =2021))
#> 2023-11-28 22:13:58.667543: Invalid arguments or no team stats data for 2019 - 2021 available!
#> Error in kp_teamstats(min_year = 2019, max_year = 2021) : 
#>   object 'kenpom' not found
# }