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 × 41
#>   player_id player_name      pos     age team  status  active years_exp swish_id
#>   <chr>     <chr>            <chr> <dbl> <chr> <chr>   <lgl>      <int> <chr>   
#> 1 5282      Duplicate Player WR     NA   CHI   Inacti… FALSE          0 NA      
#> 2 6036      Ryan Davis       WR     26.9 NA    Active  TRUE           3 NA      
#> 3 1305      Patrick DiMarco  FB     34.9 NA    Injure… TRUE          11 NA      
#> 4 6400      Ryan Bee         DE     28.3 ARI   Active  TRUE           3 NA      
#> 5 6544      Aaron Adeoye     LB     30.5 NA    Active  TRUE           3 875479  
#> # ℹ 32 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>, …
# }