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…¹ sport…² fanta…³ swish…⁴
#>   <chr>     <chr>       <chr> <dbl> <chr> <chr>    <int> <chr>     <int>   <int>
#> 1 3946      Jake Ceres… DE     28.6 NA    Active       6 10f302…   18779      NA
#> 2 4517      Ricky Ali'… DT     31.2 NA    Active       5 49c600…   19389      NA
#> 3 6432      Otaro Alaka LB     26.7 NA    Active       3 209307…   21482  835819
#> 4 1628      Joseph Fau… TE     33.1 NA    Inact…       7 2a678c…   15336      NA
#> 5 3318      Kevin Hogan QB     30.3 NA    Active       7 cd571c…   18079  598962
#> # … with 29 more variables: rotowire_id <int>, rotoworld_id <int>,
#> #   espn_id <int>, yahoo_id <int>, stats_id <int>, gsis_id <chr>,
#> #   pandascore_id <lgl>, practice_description <chr>, number <int>,
#> #   injury_notes <chr>, birth_state <lgl>, news_updated <dbl>,
#> #   birth_country <lgl>, weight <chr>, college <chr>, injury_start_date <lgl>,
#> #   injury_body_part <chr>, high_school <chr>, birth_date <date>,
#> #   birth_city <lgl>, height <chr>, practice_participation <chr>, …
# }