Learn R Programming

hoopR (version 2.1.0)

kp_player_career: Get KenPom's player career stats from the player page

Description

Get KenPom's player career stats from the player page

Usage

kp_player_career(player_id)

Value

Returns a named list of tibbles: player_stats, gamelog

player_stats

col_nametypes
yearnumeric
team_rknumeric
teamcharacter
numbernumeric
namecharacter
positioncharacter
hgtcharacter
wgtnumeric
yrcharacter
gnumeric
min_pctnumeric
o_rtgnumeric
poss_pctnumeric
shots_pctnumeric
e_fg_pctnumeric
ts_pctnumeric
or_pctnumeric
dr_pctnumeric
a_ratenumeric
to_ratenumeric
blk_pctnumeric
stl_pctnumeric
f_cper40numeric
f_dper40numeric
ft_ratenumeric
ftmnumeric
ftanumeric
ft_pctnumeric
fgm_2numeric
fga_2numeric
fg_2_pctnumeric
fgm_3numeric
fga_3numeric
fg_3_pctnumeric
group_rankcharacter
team_finishcharacter
ncaa_seednumeric
hometowncharacter
date_of_birthcharacter
agecharacter
comparisonscharacter

gamelog

col_nametypes
yearnumeric
teamcharacter
namecharacter
positioncharacter
opponent_tierlogical
datecharacter
opponent_rknumeric
opponentcharacter
resultcharacter
otcharacter
locationcharacter
game_typecharacter
mvpcharacter
startcharacter
minutes_playednumeric
o_rtgnumeric
poss_pctnumeric
ptsnumeric
fgm_2numeric
fga_2numeric
fgm_3numeric
fga_3numeric
ftmnumeric
ftanumeric
ornumeric
drnumeric
anumeric
tonumeric
blknumeric
stlnumeric
pfnumeric

Arguments

player_id

Player Id filter to select.

See Also

Other KenPom Team Functions: kp_gameplan(), kp_minutes_matrix(), kp_opptracker(), kp_team_depth_chart(), kp_team_lineups(), kp_team_player_stats(), kp_team_players(), kp_team_schedule()

Examples

Run this code
  # \donttest{
    try(kp_player_career(player_id = '41180'))
  # }

Run the code above in your browser using DataLab