Skip to contents

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

Usage

mfl_players(conn = NULL)

Arguments

conn

optionally, pass in a conn object generated by ff_connect to receive league-specific custom players

Value

a dataframe containing all ~2000+ players in the MFL database

Examples

# \donttest{
try({ # try only shown here because sometimes CRAN checks are weird
  player_list <- mfl_players()
  dplyr::sample_n(player_list, 5)
}) # end try
#> # A tibble: 5 × 25
#>   player_id player_name       pos     age team  status draft_year draft_team
#>   <chr>     <chr>             <chr> <dbl> <chr> <chr>  <chr>      <chr>     
#> 1 15547     Hall, Kemon       CB     24.7 LAC   NA     2019       FA        
#> 2 15172     Olonilua, Sewo    RB     24.2 DAL   NA     2020       FA        
#> 3 15426     Gillespie, Tyree  S      24.4 LVR   R      2021       LVR       
#> 4 13838     Bawden, Nick      RB     25.6 NYJ   NA     2018       DET       
#> 5 0157      Browns, Cleveland TMWR   NA   CLE   NA     1970       CLE       
#> # … with 17 more variables: draft_round <chr>, draft_pick <chr>,
#> #   stats_global_id <chr>, stats_id <chr>, fleaflicker_id <chr>, cbs_id <chr>,
#> #   sportsdata_id <chr>, rotoworld_id <chr>, rotowire_id <chr>, nfl_id <chr>,
#> #   espn_id <chr>, twitter_username <chr>, college <chr>, height <chr>,
#> #   weight <chr>, birthdate <date>, jersey <chr>
# }