Skip to contents

Get KenPom's team game plan page

Usage

kp_gameplan(team, year = 2021)

Arguments

team

Team filter to select.

year

Year of data to pull

Value

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.

Examples

# \donttest{
   try(kp_gameplan(team='Florida St.', year=2021))
#>  2026-08-06 04:00:52.331648: 2026-08-06 - No Game Plan Points distribution tables available for Florida St. - 2021
#>  Args: team = "Florida St.", year = 2021
#>  Error: HTTP 403 Forbidden.
#> NULL
# }