A cached table of ESPN NFL players. Will store in memory for each session! (via memoise in zzz.R)

espn_players(conn = NULL, season = NULL)

Arguments

conn

a connection object created by espn_connect or ff_connect()

season

a season to fetch

Value

a dataframe containing all ~2000+ active players in the ESPN database

Examples

# \donttest{
try({ # try only shown here because sometimes CRAN checks are weird

  conn <- espn_connect(season = 2020, league_id = 1178049)

  espn_players(conn, season = 2020)
}) # end try
#> # A tibble: 2,656 × 5
#>    player_id player_name          pos   eligible_pos team 
#>        <int> <chr>                <chr> <list>       <chr>
#>  1   4029893 Antonio Gandy-Golden WR    <chr [8]>    WAS  
#>  2   3915196 D'Andre Walker       DE    <chr [6]>    FA   
#>  3   2588098 Tye Smith            CB    <chr [5]>    TEN  
#>  4   3915190 Jayson Stanley       CB    <chr [5]>    SEA  
#>  5   3915189 Roquan Smith         LB    <chr [4]>    CHI  
#>  6     15773 Darren Fells         TE    <chr [6]>    HOU  
#>  7   3128774 Kalen Ballage        RB    <chr [6]>    LAC  
#>  8     15782 Chris Banjo          S     <chr [5]>    ARI  
#>  9   3915186 Chauncey Rivers      DE    <chr [6]>    BAL  
#> 10     15785 Ezekiel Ansah        DE    <chr [6]>    SFO  
#> # … with 2,646 more rows
# }