Skip to contents

Get KenPom Game Box Score

Usage

kp_box(game_id, year)

Arguments

game_id

Game id of game to pull

year

Year of game to pull

Value

Returns a tibble of game box scores with names: away_team, home_team, linescore, officials

away_team

col_nametypesdescription
hgtcharacterHgt.
wgtnumericWgt.
yrcharacterYr.
numbernumericNumber.
playercharacterPlayer.
minnumericMinutes played.
o_rtgnumericO rtg.
percent_psnumericPercent ps.
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.
teamcharacterTeam-side label or team identifier.
wp_notecharacterWp note.
game_idnumericUnique game identifier.
yearnumeric4-digit year.

home_team

col_nametypesdescription
hgtcharacterHgt.
wgtnumericWgt.
yrcharacterYr.
numbernumericNumber.
playercharacterPlayer.
minnumericMinutes played.
o_rtgnumericO rtg.
percent_psnumericPercent ps.
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.
teamcharacterTeam-side label or team identifier.
wp_notecharacterWp note.
game_idnumericUnique game identifier.
yearnumeric4-digit year.

linescore

col_nametypesdescription
teamcharacterTeam-side label or team identifier.
q1integerQ1.
q2integerQ2.
q3integerQ3.
q4integerQ4.
tintegerT.

officials

col_nametypesdescription
official_idcharacterUnique official / referee identifier.
official_namecharacterOfficial name.
game_idnumericUnique game identifier.
yearnumeric4-digit year.

See also

Other KenPom Boxscore Functions: kp_winprob()

Examples

# \donttest{
try(kp_box(game_id = 6, year = 2021))
#>  2026-08-06 04:00:50.53001: Invalid arguments or no box data for 6 available!
#>  Args: game_id = 6, year = 2021
#>  Error: HTTP 403 Forbidden.
#> NULL
# }