Learn R Programming

hoopR (version 2.1.0)

kp_box: Get KenPom Game Box Score

Description

Get KenPom Game Box Score

Usage

kp_box(game_id, year)

Value

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

away_team

col_nametypes
hgtcharacter
wgtnumeric
yrcharacter
numbernumeric
playercharacter
minnumeric
o_rtgnumeric
percent_psnumeric
ptsnumeric
fgm_2numeric
fga_2numeric
fgm_3numeric
fga_3numeric
ftmnumeric
ftanumeric
ornumeric
drnumeric
anumeric
tonumeric
blknumeric
stlnumeric
pfnumeric
teamcharacter
wp_notecharacter
game_idnumeric
yearnumeric

home_team

col_nametypes
hgtcharacter
wgtnumeric
yrcharacter
numbernumeric
playercharacter
minnumeric
o_rtgnumeric
percent_psnumeric
ptsnumeric
fgm_2numeric
fga_2numeric
fgm_3numeric
fga_3numeric
ftmnumeric
ftanumeric
ornumeric
drnumeric
anumeric
tonumeric
blknumeric
stlnumeric
pfnumeric
teamcharacter
wp_notecharacter
game_idnumeric
yearnumeric

linescore

col_nametypes
teamcharacter
q1integer
q2integer
q3integer
q4integer
tinteger

officials

col_nametypes
official_idcharacter
official_namecharacter
game_idnumeric
yearnumeric

Arguments

game_id

Game id of game to pull

year

Year of game to pull

See Also

Other KenPom Boxscore Functions: kp_winprob()

Examples

Run this code
# \donttest{
  try(kp_box(game_id = 6, year = 2021))
# }

Run the code above in your browser using DataLab