Skip to contents

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

Usage

sleeper_players()

Value

a dataframe containing all ~7000+ players in the Sleeper database

Examples

# \donttest{
try({ # try only shown here because sometimes CRAN checks are weird
  x <- sleeper_players()
  dplyr::sample_n(x, 5)
}) # end try
#> # A tibble: 5 × 43
#>   player_id player_name      pos     age team  status  active years_exp swish_id
#>   <chr>     <chr>            <chr> <dbl> <chr> <chr>   <lgl>      <int> <chr>   
#> 1 6453      D.J. Montgomery  WR     27.5 IND   Active  TRUE           5 1063397 
#> 2 8895      Carlins Platel   CB     24.8 NA    Inacti… TRUE           1 1323716 
#> 3 11961     Emory Jones      QB     24.1 BAL   Active  TRUE           0 1108996 
#> 4 1799      Wade Keliikipi   NT     32.9 NA    Inacti… FALSE          1 NA      
#> 5 798       Da'Norris Searcy SS     35.5 NA    Inacti… FALSE         11 NA      
#> # ℹ 34 more variables: espn_id <chr>, fantasy_data_id <chr>,
#> #   pandascore_id <chr>, rotowire_id <chr>, sportradar_id <chr>,
#> #   yahoo_id <chr>, oddsjam_id <chr>, dl_trading_id <chr>, rotoworld_id <chr>,
#> #   stats_id <chr>, gsis_id <chr>, height <chr>, weight <int>,
#> #   fantasy_positions <chr>, number <int>, depth_chart_order <int>,
#> #   depth_chart_position <chr>, practice_description <chr>, birth_date <date>,
#> #   birth_city <chr>, birth_state <chr>, birth_country <chr>, …
# }