Skip to contents

Get Team Player Stats

Usage

kp_team_player_stats(team, year = 2021)

Arguments

team

Team filter to select.

year

Year of data to pull

Value

Returns a list of named data frames: all_games, conference_games

all_games

col_nametypes
rolecharacter
numbernumeric
playercharacter
htcharacter
wtnumeric
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
categorycharacter
min_pct_rknumeric
o_rtg_rknumeric
poss_pct_rknumeric
shots_pct_rknumeric
e_fg_pct_rknumeric
ts_pct_rknumeric
or_pct_rknumeric
dr_pct_rknumeric
a_rate_rknumeric
to_rate_rknumeric
blk_pct_rknumeric
stl_pct_rknumeric
f_cper40_rknumeric
f_dper40_rknumeric
ft_rate_rknumeric
ft_pct_rknumeric
fg_2_pct_rknumeric
fg_3_pct_rknumeric
group_rankcharacter
teamcharacter
yearnumeric
player_idnumeric

conference_games

col_nametypes
rolecharacter
numbernumeric
playercharacter
htcharacter
wtnumeric
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
categorycharacter
min_pct_rknumeric
o_rtg_rknumeric
poss_pct_rknumeric
shots_pct_rknumeric
e_fg_pct_rknumeric
ts_pct_rknumeric
or_pct_rknumeric
dr_pct_rknumeric
a_rate_rknumeric
to_rate_rknumeric
blk_pct_rknumeric
stl_pct_rknumeric
f_cper40_rknumeric
f_dper40_rknumeric
ft_rate_rknumeric
ft_pct_rknumeric
fg_2_pct_rknumeric
fg_3_pct_rknumeric
group_rankcharacter
teamcharacter
yearnumeric
player_idnumeric

Examples

  # \donttest{
    try(kp_team_player_stats(team = 'Florida St.', year = 2021))
#> $all_games
#> # A tibble: 13 × 54
#>    role   number player ht       wt yr        g min_pct o_rtg poss_pct shots_pct
#>    <chr>   <dbl> <chr>  <chr> <dbl> <chr> <dbl>   <dbl> <dbl>    <dbl>     <dbl>
#>  1 Major…      4 Scott… 6-9     227 Fr       24    58.7 108.      25.4      22.7
#>  2 Signi…     23 MJ Wa… 6-5     213 Sr       24    69   106.      21.9      21.6
#>  3 Signi…      1 RaiQu… 6-8     260 Jr       25    65   110.      23.6      22.2
#>  4 Signi…      5 Balsa… 7-1     240 So       24    46.4 117.      22        21.7
#>  5 Signi…     11 Natha… 6-5     195 Sr       19    14.4 109.      21.1      26.7
#>  6 Role …      2 Antho… 6-6     215 Jr       21    55.1 122.      17.1      18.6
#>  7 Role …      0 RayQu… 6-4     210 Sr       24    45.5  97.5     16.7      15.2
#>  8 Role …     24 Sarda… 6-6     220 Jr       25    35.5 106.      17.8      22.4
#>  9 Role …     34 Tanor… 7-2     236 Sr       23    14.8  98.2     19        15.3
#> 10 Limit…     10 Malik… 6-9     225 Jr       24    47.8 115.      14.3      15.6
#> 11 Limit…     31 Wyatt… 6-8     220 Jr       25    34   112.      14.2      17.3
#> 12 Bench…     15 Quinc… 6-11    240 Fr       18     6    95       19.1      15.9
#> 13 Bench…     12 Justi… 6-1     180 Sr        9     2.2 104.      27.9      31.4
#> # ℹ 43 more variables: e_fg_pct <dbl>, ts_pct <dbl>, or_pct <dbl>,
#> #   dr_pct <dbl>, a_rate <dbl>, to_rate <dbl>, blk_pct <dbl>, stl_pct <dbl>,
#> #   f_cper40 <dbl>, f_dper40 <dbl>, ft_rate <dbl>, ftm <dbl>, fta <dbl>,
#> #   ft_pct <dbl>, fgm_2 <dbl>, fga_2 <dbl>, fg_2_pct <dbl>, fgm_3 <dbl>,
#> #   fga_3 <dbl>, fg_3_pct <dbl>, category <chr>, min_pct_rk <dbl>,
#> #   o_rtg_rk <dbl>, poss_pct_rk <dbl>, shots_pct_rk <dbl>, e_fg_pct_rk <dbl>,
#> #   ts_pct_rk <dbl>, or_pct_rk <dbl>, dr_pct_rk <dbl>, a_rate_rk <dbl>, …
#> 
#> $conference_games
#> # A tibble: 11 × 54
#>    role   number player ht       wt yr        g min_pct o_rtg poss_pct shots_pct
#>    <chr>   <dbl> <chr>  <chr> <dbl> <chr> <dbl>   <dbl> <dbl>    <dbl>     <dbl>
#>  1 Major…      1 RaiQu… 6-8     260 Jr       15    67.1  112.     25.9      22.9
#>  2 Major…      4 Scott… 6-9     227 Fr       14    55    114      26.2      23.6
#>  3 Signi…     23 MJ Wa… 6-5     213 Sr       14    65.5  111.     20.5      21.6
#>  4 Signi…     11 Natha… 6-5     195 Sr       13    17    114.     21.4      27.4
#>  5 Role …      0 RayQu… 6-4     210 Sr       14    49.3  110.     16.9      15.8
#>  6 Role …      2 Antho… 6-6     215 Jr       11    45.5  115.     16.6      17.6
#>  7 Role …      5 Balsa… 7-1     240 So       14    43.8  124.     19.9      19.6
#>  8 Role …     24 Sarda… 6-6     220 Jr       15    39.8  111      18.6      22.6
#>  9 Role …     34 Tanor… 7-2     236 Sr       13    15.2  108      16.8      13.9
#> 10 Limit…     10 Malik… 6-9     225 Jr       14    45.8  114.     14.5      16.3
#> 11 Limit…     31 Wyatt… 6-8     220 Jr       15    38.4  122.     14.3      16.5
#> # ℹ 43 more variables: e_fg_pct <dbl>, ts_pct <dbl>, or_pct <dbl>,
#> #   dr_pct <dbl>, a_rate <dbl>, to_rate <dbl>, blk_pct <dbl>, stl_pct <dbl>,
#> #   f_cper40 <dbl>, f_dper40 <dbl>, ft_rate <dbl>, ftm <dbl>, fta <dbl>,
#> #   ft_pct <dbl>, fgm_2 <dbl>, fga_2 <dbl>, fg_2_pct <dbl>, fgm_3 <dbl>,
#> #   fga_3 <dbl>, fg_3_pct <dbl>, category <chr>, min_pct_rk <dbl>,
#> #   o_rtg_rk <dbl>, poss_pct_rk <dbl>, shots_pct_rk <dbl>, e_fg_pct_rk <dbl>,
#> #   ts_pct_rk <dbl>, or_pct_rk <dbl>, dr_pct_rk <dbl>, a_rate_rk <dbl>, …
#> 
  # }