Skip to contents

Get Depth Chart Last 5 Games from Team Page

Usage

kp_team_depth_chart(team, year = 2021)

Arguments

team

Team filter to select.

year

Year of data to pull

Value

A data frame with the following columns:

col_nametypes
pg_numbernumeric
pg_player_first_namecharacter
pg_player_last_namecharacter
pg_hgtcharacter
pg_wgtnumeric
pg_yrcharacter
pg_min_pctnumeric
sg_numbernumeric
sg_player_first_namecharacter
sg_player_last_namecharacter
sg_hgtcharacter
sg_wgtnumeric
sg_yrcharacter
sg_min_pctnumeric
sf_numbernumeric
sf_player_first_namecharacter
sf_player_last_namecharacter
sf_hgtcharacter
sf_wgtnumeric
sf_yrcharacter
sf_min_pctnumeric
pf_numbernumeric
pf_player_first_namecharacter
pf_player_last_namecharacter
pf_hgtcharacter
pf_wgtnumeric
pf_yrcharacter
pf_min_pctnumeric
c_numbernumeric
c_player_first_namecharacter
c_player_last_namecharacter
c_hgtcharacter
c_wgtnumeric
c_yrcharacter
c_min_pctnumeric
teamcharacter
yearnumeric

Examples

  # \donttest{
    try(kp_team_depth_chart(team = 'Florida St.', year= 2021))
#>   pg_number pg_player_first_name pg_player_last_name pg_hgt pg_wgt pg_yr
#> 1        23                   MJ              Walker    6-5    213    Sr
#> 2         4              Scottie              Barnes    6-9    227    Fr
#> 3         0              RayQuan               Evans    6-4    210    Sr
#> 4        NA                 <NA>                <NA>   <NA>     NA      
#>   pg_min_pct sg_number sg_player_first_name sg_player_last_name sg_hgt sg_wgt
#> 1       0.71         2              Anthony              Polite    6-6    215
#> 2       0.22         0              RayQuan               Evans    6-4    210
#> 3       0.06        24              Sardaar             Calhoun    6-6    220
#> 4         NA        11            Nathanael                Jack    6-5    195
#>   sg_yr sg_min_pct sf_number sf_player_first_name sf_player_last_name sf_hgt
#> 1    Jr       0.35         4              Scottie              Barnes    6-9
#> 2    Sr       0.29         2              Anthony              Polite    6-6
#> 3    Jr       0.26        31                Wyatt              Wilkes    6-8
#> 4    Sr       0.08        24              Sardaar             Calhoun    6-6
#>   sf_wgt sf_yr sf_min_pct pf_number pf_player_first_name pf_player_last_name
#> 1    227    Fr       0.42        10                Malik             Osborne
#> 2    215    Jr       0.35         1              RaiQuan                Gray
#> 3    220    Jr       0.13        31                Wyatt              Wilkes
#> 4    220    Jr       0.07        NA                 <NA>                <NA>
#>   pf_hgt pf_wgt pf_yr pf_min_pct c_number c_player_first_name
#> 1    6-9    225    Jr       0.50        5               Balsa
#> 2    6-8    260    Jr       0.41        1             RaiQuan
#> 3    6-8    220    Jr       0.06       34               Tanor
#> 4   <NA>     NA               NA       NA                <NA>
#>   c_player_last_name c_hgt c_wgt c_yr c_min_pct        team year
#> 1          Koprivica   7-1   240   So      0.54 Florida St. 2021
#> 2               Gray   6-8   260   Jr      0.24 Florida St. 2021
#> 3               Ngom   7-2   236   Sr      0.18 Florida St. 2021
#> 4               <NA>  <NA>    NA             NA Florida St. 2021
  # }