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 × 39
#>   player_id player_name pos     age team  status years…¹ swish…² panda…³ gsis_id
#>   <chr>     <chr>       <chr> <dbl> <chr> <chr>    <int>   <int> <lgl>   <chr>  
#> 1 6033      Isaiah Bug… DE     26.2 DET   Active       3  973976 NA      00-003…
#> 2 1026      Bryce Brown RB     31.5 NA    Inact…       8      NA NA      NA     
#> 3 174       Jay Ratliff NT     41.2 NA    Inact…      15      NA NA      NA     
#> 4 6116      John Comin… DE     26.9 DET   Active       3 1163507 NA      00-003…
#> 5 2163      Shamar Ste… DT     31.7 NA    Active       8  511821 NA      00-003…
#> # … with 29 more variables: fantasy_data_id <int>, espn_id <int>,
#> #   stats_id <int>, yahoo_id <int>, rotoworld_id <int>, sportradar_id <chr>,
#> #   rotowire_id <int>, college <chr>, depth_chart_position <chr>, weight <chr>,
#> #   practice_description <chr>, height <chr>, practice_participation <chr>,
#> #   injury_notes <chr>, depth_chart_order <int>, news_updated <dbl>,
#> #   hashtag <chr>, birth_state <lgl>, fantasy_positions <chr>,
#> #   birth_country <lgl>, birth_city <lgl>, number <int>, …
# }