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_exp stats_id
#>   <chr>     <chr>            <chr> <dbl> <chr> <chr>        <int>    <int>
#> 1 7502      Dominique Dafney TE     24.7 GB    Active           2       NA
#> 2 6698      Casey Tucker     T      26.4 DEN   Active           3       NA
#> 3 3274      Nick Kwiatkoski  LB     28.7 LV    Inactive         6       NA
#> 4 6644      Curtis Akins     OLB    26.4 NA    Active           3       NA
#> 5 1978      Tony Washington  WR     31.3 NA    Inactive         6   504371
#> # … with 31 more variables: sportradar_id <chr>, rotowire_id <int>,
#> #   espn_id <int>, yahoo_id <int>, pandascore_id <lgl>, rotoworld_id <int>,
#> #   swish_id <int>, fantasy_data_id <int>, gsis_id <chr>, number <int>,
#> #   height <chr>, depth_chart_position <chr>, injury_status <chr>,
#> #   injury_notes <chr>, sport <chr>, hashtag <chr>, depth_chart_order <int>,
#> #   practice_participation <chr>, practice_description <chr>,
#> #   injury_start_date <lgl>, injury_body_part <chr>, college <chr>, …
# }