Skip to contents

Get team schedule results

Get KenPom's team game plan page

Get KenPom's team opponent tracker page

Get KenPom's player stats from the team page

Get KenPom's player career stats from the player page

Get Minutes Matrix from Expanded Player Page

Get Team Player Stats

Get Depth Chart Last 5 Games from Team Page

Get Lineups Last 5 Games from Team Page

Usage

kp_team_schedule(team, year = 2022)

kp_gameplan(team, year = 2021)

kp_opptracker(team, year = 2021)

kp_team_players(team, year = 2021)

kp_player_career(player_id)

kp_minutes_matrix(team, year = 2021)

kp_team_player_stats(team, year = 2021)

kp_team_depth_chart(team, year = 2021)

kp_team_lineups(team, year = 2021)

Arguments

team

Team filter to select.

year

Year of data to pull

player_id

Player Id filter to select.

Value

Returns a tibble of team schedules

col_nametypesdescription
team_rknumericTeam rk.
teamcharacterTeam-side label or team identifier.
opponent_rknumericOpponent rk.
opponentcharacterOpponent.
resultcharacterResult.
possnumericPoss.
otnumericOt.
pre_wpnumericPre wp.
locationcharacterLocation.
wnumericWins.
lnumericLosses.
w_conferencenumericW conference.
l_conferencenumericL conference.
conference_gamelogicalConference game.
postseasoncharacterPostseason.
yearnumeric4-digit year.
day_datecharacterDate in YYYY-MM-DD format.
game_datenumericGame date (YYYY-MM-DD).
w_projnumericW proj.
l_projnumericL proj.
w_conference_projnumericW conference proj.
l_conference_projnumericL conference proj.
datecharacterDate in YYYY-MM-DD format.
game_idnumericUnique game identifier.
tiers_of_joycharacterTiers of joy.

Returns a named list of tibbles: gameplan, correlations, position_distributions

gameplan

col_nametypesdescription
dateDateDate in YYYY-MM-DD format.
opponent_rknumericOpponent rk.
opponentcharacterOpponent.
resultcharacterResult.
locationcharacterLocation.
pacenumericPossessions per 48 minutes.
off_effnumericOff eff.
off_eff_rknumericOff eff rk.
off_e_fg_pctnumericOff e field goals percentage (0-1 decimal).
off_to_pctnumericOff to percentage (0-1 decimal).
off_or_pctnumericOff or percentage (0-1 decimal).
off_ftrnumericOff ftr.
off_fgm_2numericOff fgm 2.
off_fga_2numericOff fga 2.
off_fg_2_pctnumericOff field goals 2 percentage (0-1 decimal).
off_fgm_3numericOff fgm 3.
off_fga_3numericOff fga 3.
off_fg_3_pctnumericOff field goals 3 percentage (0-1 decimal).
off_fg_3a_pctnumericOff field goals 3a percentage (0-1 decimal).
def_effnumericDef eff.
def_eff_rknumericDef eff rk.
def_e_fg_pctnumericDef e field goals percentage (0-1 decimal).
def_to_pctnumericDef to percentage (0-1 decimal).
def_or_pctnumericDef or percentage (0-1 decimal).
def_ftrnumericDef ftr.
def_fgm_2numericDef fgm 2.
def_fga_2numericDef fga 2.
def_fg_2_pctnumericDef field goals 2 percentage (0-1 decimal).
def_fgm_3numericDef fgm 3.
def_fga_3numericDef fga 3.
def_fg_3_pctnumericDef field goals 3 percentage (0-1 decimal).
def_fg_3a_pctnumericDef field goals 3a percentage (0-1 decimal).
wlcharacterWl.
team_scorenumericTeam's score / final score.
opponent_scorenumericOpponent score.
day_datecharacterDate in YYYY-MM-DD format.
game_datenumericGame date (YYYY-MM-DD).

correlations

col_nametypesdescription
correlations_r_x_100characterCorrelations r x 100.
pacecharacterPossessions per 48 minutes.
off_e_fg_pctcharacterOff e field goals percentage (0-1 decimal).
off_to_pctcharacterOff to percentage (0-1 decimal).
off_or_pctcharacterOff or percentage (0-1 decimal).
off_ftrcharacterOff ftr.
def_e_fg_pctcharacterDef e field goals percentage (0-1 decimal).
def_to_pctcharacterDef to percentage (0-1 decimal).
def_or_pctcharacterDef or percentage (0-1 decimal).
def_ftrcharacterDef ftr.

position_distributions

col_nametypesdescription
teamcharacterTeam-side label or team identifier.
categorycharacterCategory label.
c_pctnumericC percentage (0-1 decimal).
pf_pctnumericPersonal fouls percentage (0-1 decimal).
sf_pctnumericSf percentage (0-1 decimal).
sg_pctnumericSg percentage (0-1 decimal).
pg_pctnumericPg percentage (0-1 decimal).
c_pct_rknumericC pct rk.
pf_pct_rknumericPf pct rk.
sf_pct_rknumericSf pct rk.
sg_pct_rknumericSg pct rk.
pg_pct_rknumericPg pct rk.
c_pct_d1_avgnumericC pct d1 avg.
pf_pct_d1_avgnumericPf pct d1 avg.
sf_pct_d1_avgnumericSf pct d1 avg.
sg_pct_d1_avgnumericSg pct d1 avg.
pg_pct_d1_avgnumericPg pct d1 avg.

Returns a tibble of team opponent tracker data

col_nametypesdescription
dateDateDate in YYYY-MM-DD format.
game_datenumericGame date (YYYY-MM-DD).
day_datecharacterDate in YYYY-MM-DD format.
wlcharacterWl.
teamcharacterTeam-side label or team identifier.
team_scorenumericTeam's score / final score.
opponentcharacterOpponent.
opponent_scorenumericOpponent score.
resultcharacterResult.
adj_oenumericAdj oe.
adj_oe_rkintegerAdj oe rk.
off_e_fg_pctnumericOff e field goals percentage (0-1 decimal).
off_e_fg_pct_rkintegerOff e fg pct rk.
off_to_pctnumericOff to percentage (0-1 decimal).
off_to_pct_rkintegerOff to pct rk.
off_or_pctnumericOff or percentage (0-1 decimal).
off_or_pct_rkintegerOff or pct rk.
off_ft_ratenumericOff ft rate.
off_ft_rate_rkintegerOff ft rate rk.
off_fg_2_pctnumericOff field goals 2 percentage (0-1 decimal).
off_fg_2_pct_rkintegerOff fg 2 pct rk.
off_fg_3_pctnumericOff field goals 3 percentage (0-1 decimal).
off_fg_3_pct_rkintegerOff fg 3 pct rk.
off_blk_pctnumericOff blocks percentage (0-1 decimal).
off_blk_pct_rkintegerOff blk pct rk.
off_fg_3a_pctnumericOff field goals 3a percentage (0-1 decimal).
off_fg_3a_pct_rkintegerOff fg 3a pct rk.
off_aplnumericOff apl.
off_apl_rkintegerOff apl rk.
adj_denumericAdj de.
adj_de_rkintegerAdj de rk.
def_e_fg_pctnumericDef e field goals percentage (0-1 decimal).
def_e_fg_pct_rkintegerDef e fg pct rk.
def_to_pctnumericDef to percentage (0-1 decimal).
def_to_pct_rkintegerDef to pct rk.
def_or_pctnumericDef or percentage (0-1 decimal).
def_or_pct_rkintegerDef or pct rk.
def_ft_ratenumericDef ft rate.
def_ft_rate_rkintegerDef ft rate rk.
def_fg_2_pctnumericDef field goals 2 percentage (0-1 decimal).
def_fg_2_pct_rkintegerDef fg 2 pct rk.
def_fg_3_pctnumericDef field goals 3 percentage (0-1 decimal).
def_fg_3_pct_rkintegerDef fg 3 pct rk.
def_blk_pctnumericDef blocks percentage (0-1 decimal).
def_blk_pct_rkintegerDef blk pct rk.
def_fg_3a_pctnumericDef field goals 3a percentage (0-1 decimal).
def_fg_3a_pct_rkintegerDef fg 3a pct rk.
def_aplnumericDef apl.
def_apl_rkintegerDef apl rk.

Returns a tibble of team player data

col_nametypesdescription
rolecharacterRole.
numbernumericNumber.
playercharacterPlayer.
htcharacterHt.
wtnumericWt.
yrcharacterYr.
gnumericGames played.
snumericS.
min_pctnumericMin percentage (0-1 decimal).
o_rtgnumericO rtg.
poss_pctnumericPoss percentage (0-1 decimal).
shots_pctnumericShots percentage (0-1 decimal).
e_fg_pctnumericE field goals percentage (0-1 decimal).
ts_pctnumericTrue shooting percentage (0-1).
or_pctnumericOr percentage (0-1 decimal).
dr_pctnumericDr percentage (0-1 decimal).
a_ratenumericA rate.
to_ratenumericTo rate.
blk_pctnumericBlocks percentage (0-1 decimal).
stl_pctnumericSteals percentage (0-1 decimal).
f_cper40numericF cper40.
f_dper40numericF dper40.
ft_ratenumericFt rate.
ftmnumericFree throws made.
ftanumericFree throw attempts.
ft_pctnumericFree throw percentage (0-1).
fgm_2numericFgm 2.
fga_2numericFga 2.
fg_2_pctnumericField goals 2 percentage (0-1 decimal).
fgm_3numericFgm 3.
fga_3numericFga 3.
fg_3_pctnumericField goals 3 percentage (0-1 decimal).
min_pct_rknumericMin pct rk.
o_rtg_rknumericO rtg rk.
poss_pct_rknumericPoss pct rk.
shots_pct_rknumericShots pct rk.
e_fg_pct_rknumericE fg pct rk.
ts_pct_rknumericTs pct rk.
or_pct_rknumericOr pct rk.
dr_pct_rknumericDr pct rk.
a_rate_rknumericA rate rk.
to_rate_rknumericTo rate rk.
blk_pct_rknumericBlk pct rk.
stl_pct_rknumericStl pct rk.
f_cper40_rknumericF cper40 rk.
f_dper40_rknumericF dper40 rk.
ft_rate_rknumericFt rate rk.
ft_pct_rknumericFt pct rk.
fg_2_pct_rknumericFg 2 pct rk.
fg_3_pct_rknumericFg 3 pct rk.
national_rankcharacterLeague/season rank for national.
teamcharacterTeam-side label or team identifier.
yearnumeric4-digit year.
player_idnumericUnique player identifier.

Returns a named list of tibbles: player_stats, gamelog

player_stats

col_nametypesdescription
yearnumeric4-digit year.
team_rknumericTeam rk.
teamcharacterTeam-side label or team identifier.
numbernumericNumber.
namecharacterDisplay name.
positioncharacterListed roster position (G, F, C, etc.).
hgtcharacterHgt.
wgtnumericWgt.
yrcharacterYr.
gnumericGames played.
min_pctnumericMin percentage (0-1 decimal).
o_rtgnumericO rtg.
poss_pctnumericPoss percentage (0-1 decimal).
shots_pctnumericShots percentage (0-1 decimal).
e_fg_pctnumericE field goals percentage (0-1 decimal).
ts_pctnumericTrue shooting percentage (0-1).
or_pctnumericOr percentage (0-1 decimal).
dr_pctnumericDr percentage (0-1 decimal).
a_ratenumericA rate.
to_ratenumericTo rate.
blk_pctnumericBlocks percentage (0-1 decimal).
stl_pctnumericSteals percentage (0-1 decimal).
f_cper40numericF cper40.
f_dper40numericF dper40.
ft_ratenumericFt rate.
ftmnumericFree throws made.
ftanumericFree throw attempts.
ft_pctnumericFree throw percentage (0-1).
fgm_2numericFgm 2.
fga_2numericFga 2.
fg_2_pctnumericField goals 2 percentage (0-1 decimal).
fgm_3numericFgm 3.
fga_3numericFga 3.
fg_3_pctnumericField goals 3 percentage (0-1 decimal).
group_rankcharacterLeague/season rank for group.
team_finishcharacterTeam finish.
ncaa_seednumericNcaa seed.
hometowncharacterPlayer hometown.
date_of_birthcharacterDate of birth (YYYY-MM-DD).
agecharacterPlayer age (in years).
comparisonscharacterComparisons.

gamelog

col_nametypesdescription
yearnumeric4-digit year.
teamcharacterTeam-side label or team identifier.
namecharacterDisplay name.
positioncharacterListed roster position (G, F, C, etc.).
opponent_tierlogicalOpponent tier.
datecharacterDate in YYYY-MM-DD format.
opponent_rknumericOpponent rk.
opponentcharacterOpponent.
resultcharacterResult.
otcharacterOt.
locationcharacterLocation.
game_typecharacterGame type.
mvpcharacterMvp.
startcharacterStart.
minutes_playednumericMinutes played.
o_rtgnumericO rtg.
poss_pctnumericPoss percentage (0-1 decimal).
ptsnumericPoints scored.
fgm_2numericFgm 2.
fga_2numericFga 2.
fgm_3numericFgm 3.
fga_3numericFga 3.
ftmnumericFree throws made.
ftanumericFree throw attempts.
ornumericOr.
drnumericDr.
anumericA.
tonumericTo.
blknumericBlocks.
stlnumericSteals.
pfnumericPersonal fouls.

Returns a tibble of minutes matrix data

Returns a list of named data frames: all_games, conference_games

all_games

col_nametypesdescription
rolecharacterRole.
numbernumericNumber.
playercharacterPlayer.
htcharacterHt.
wtnumericWt.
yrcharacterYr.
gnumericGames played.
min_pctnumericMin percentage (0-1 decimal).
o_rtgnumericO rtg.
poss_pctnumericPoss percentage (0-1 decimal).
shots_pctnumericShots percentage (0-1 decimal).
e_fg_pctnumericE field goals percentage (0-1 decimal).
ts_pctnumericTrue shooting percentage (0-1).
or_pctnumericOr percentage (0-1 decimal).
dr_pctnumericDr percentage (0-1 decimal).
a_ratenumericA rate.
to_ratenumericTo rate.
blk_pctnumericBlocks percentage (0-1 decimal).
stl_pctnumericSteals percentage (0-1 decimal).
f_cper40numericF cper40.
f_dper40numericF dper40.
ft_ratenumericFt rate.
ftmnumericFree throws made.
ftanumericFree throw attempts.
ft_pctnumericFree throw percentage (0-1).
fgm_2numericFgm 2.
fga_2numericFga 2.
fg_2_pctnumericField goals 2 percentage (0-1 decimal).
fgm_3numericFgm 3.
fga_3numericFga 3.
fg_3_pctnumericField goals 3 percentage (0-1 decimal).
categorycharacterCategory label.
min_pct_rknumericMin pct rk.
o_rtg_rknumericO rtg rk.
poss_pct_rknumericPoss pct rk.
shots_pct_rknumericShots pct rk.
e_fg_pct_rknumericE fg pct rk.
ts_pct_rknumericTs pct rk.
or_pct_rknumericOr pct rk.
dr_pct_rknumericDr pct rk.
a_rate_rknumericA rate rk.
to_rate_rknumericTo rate rk.
blk_pct_rknumericBlk pct rk.
stl_pct_rknumericStl pct rk.
f_cper40_rknumericF cper40 rk.
f_dper40_rknumericF dper40 rk.
ft_rate_rknumericFt rate rk.
ft_pct_rknumericFt pct rk.
fg_2_pct_rknumericFg 2 pct rk.
fg_3_pct_rknumericFg 3 pct rk.
group_rankcharacterLeague/season rank for group.
teamcharacterTeam-side label or team identifier.
yearnumeric4-digit year.
player_idnumericUnique player identifier.

conference_games

Same columns as the all_games table above.

A data frame with one row per rostered player, with the following columns:

col_nametypesdescription
teamcharacterTeam-side label or team identifier.
yearnumeric4-digit year.
player_idintegerKenPom player identifier.
player_namecharacterPlayer full name.
class_yearcharacterClass year (e.g. 'Fr', 'So', 'Jr', 'Sr').
heightcharacterHeight (e.g. '6-9').
weightnumericWeight in pounds.
pct_pgnumericPercentage of the player's minutes played at point guard (0-1 decimal).
pct_sgnumericPercentage of the player's minutes played at shooting guard (0-1 decimal).
pct_sfnumericPercentage of the player's minutes played at small forward (0-1 decimal).
pct_pfnumericPercentage of the player's minutes played at power forward (0-1 decimal).
pct_cnumericPercentage of the player's minutes played at center (0-1 decimal).
pct_possnumericPercentage of team possessions used while the player was on the floor (0-1 decimal).
ftaintegerSeason free throw attempts.
fg2aintegerSeason 2-point field goal attempts.
fg3aintegerSeason 3-point field goal attempts.

A data frame with the following columns:

col_nametypesdescription
yearnumeric4-digit year.
teamcharacterTeam-side label or team identifier.
min_pctnumericMin percentage (0-1 decimal).
pg_numbernumericPg number.
pg_player_first_namecharacterPg player first name.
pg_player_last_namecharacterPg player last name.
pg_hgtcharacterPg hgt.
pg_wgtnumericPg wgt.
pg_yrcharacterPg yr.
sg_numbernumericSg number.
sg_player_first_namecharacterSg player first name.
sg_player_last_namecharacterSg player last name.
sg_hgtcharacterSg hgt.
sg_wgtnumericSg wgt.
sg_yrcharacterSg yr.
sf_numbernumericSf number.
sf_player_first_namecharacterSf player first name.
sf_player_last_namecharacterSf player last name.
sf_hgtcharacterSf hgt.
sf_wgtnumericSf wgt.
sf_yrcharacterSf yr.
pf_numbernumericPf number.
pf_player_first_namecharacterPersonal fouls player first name.
pf_player_last_namecharacterPersonal fouls player last name.
pf_hgtcharacterPf hgt.
pf_wgtnumericPf wgt.
pf_yrcharacterPf yr.
c_numbernumericC number.
c_player_first_namecharacterC player first name.
c_player_last_namecharacterC player last name.
c_hgtcharacterC hgt.
c_wgtnumericC wgt.
c_yrcharacterC yr.

Examples

# \donttest{
  try(kp_team_schedule(team = 'Florida St.', year = 2022))
#>  2026-08-27 17:48:20.489419: 2026-08-27 - No team schedule tables available for Florida St. - 2022
#>  Args: team = "Florida St.", year = 2022
#>  Error: HTTP 429 Too Many Requests.
#> NULL
# }
# \donttest{
   try(kp_gameplan(team='Florida St.', year=2021))
#>  2026-08-27 17:48:20.53551: 2026-08-27 - No Game Plan Points distribution tables available for Florida St. - 2021
#>  Args: team = "Florida St.", year = 2021
#>  Error: HTTP 429 Too Many Requests.
#> NULL
# }
# \donttest{
  try(kp_opptracker(team = 'Florida St.', year = 2021))
#>  2026-08-27 17:48:20.57945: 2026-08-27 17:48:20.579086 - Florida St. - 2021 Team opponent tracker data is missing
#>  Args: team = "Florida St.", year = 2021
#>  Error: HTTP 429 Too Many Requests.
#> NULL
# }
  # \donttest{
    try(kp_team_players(team = 'Florida St.', year = 2024))
#>  2026-08-27 17:48:20.633998: 2026-08-27 17:48:20.633645 - No Player Data available for Florida St. in 2024
#>  Args: team = "Florida St.", year = 2024
#>  Error: HTTP 429 Too Many Requests.
#> NULL
  # }

  # \donttest{
    try(kp_player_career(player_id = '41180'))
#>  2026-08-27 17:48:20.678577: 2026-08-27 17:48:20.678254 - No Player Career Data available for 41180
#>  Args: player_id = "41180"
#>  Error: HTTP 429 Too Many Requests.
#> NULL
  # }

  # \donttest{
    try(kp_minutes_matrix(team = 'Florida St.', year = 2021))
#>  2026-08-27 17:48:20.722953: 2026-08-27 17:48:20.722594 - Florida St. - 2021 minutes matrix is missing
#>  Args: team = "Florida St.", year = 2021
#>  Error: HTTP 429 Too Many Requests.
#> NULL
  # }


  # \donttest{
    try(kp_team_player_stats(team = 'Florida St.', year = 2021))
#>  2026-08-27 17:48:20.769186: 2026-08-27 17:48:20.768845 - Florida St. - 2021 team player stats are missing
#>  Args: team = "Florida St.", year = 2021
#>  Error: HTTP 429 Too Many Requests.
#> NULL
  # }
  # \donttest{
    try(kp_team_depth_chart(team = 'Florida St.', year= 2021))
#>  2026-08-27 17:48:20.81131: 2026-08-27 17:48:20.810972 - Florida St. - 2021 Team Depth Chart is missing
#>  Args: team = "Florida St.", year = 2021
#>  Error: HTTP 429 Too Many Requests.
#> NULL
  # }


  # \donttest{
    try(kp_team_lineups(team = 'Florida St.', year = 2021))
#>  2026-08-27 17:48:20.865561: 2026-08-27 17:48:20.865231 - Florida St. - 2021 Team Lineups are missing
#>  Args: team = "Florida St.", year = 2021
#>  Error: HTTP 429 Too Many Requests.
#> NULL
  # }