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…¹ draft…² draft…³ draft…⁴
#>   <chr>     <chr>       <chr> <dbl> <chr> <chr>  <chr>   <chr>   <chr>   <chr>  
#> 1 13769     Street, Ke… DT     26.5 NOS   NA     2018    SFO     4       28     
#> 2 12323     Pinion, Br… PN     28.4 ATL   NA     2015    SFO     5       29     
#> 3 15754     Olave, Chr… WR     22.3 NOS   R      2022    NOS     1       11     
#> 4 11316     Ryan, Logan S      31.7 TBB   NA     2013    NEP     3       21     
#> 5 14319     Beck, Andr… TE     26.5 DEN   NA     2019    FA      NA      NA     
#> # … with 15 more variables: stats_global_id <chr>, stats_id <chr>,
#> #   cbs_id <chr>, fleaflicker_id <chr>, sportsdata_id <chr>,
#> #   rotoworld_id <chr>, rotowire_id <chr>, espn_id <chr>, nfl_id <chr>,
#> #   twitter_username <chr>, college <chr>, height <chr>, weight <chr>,
#> #   birthdate <date>, jersey <chr>, and abbreviated variable names ¹​draft_year,
#> #   ²​draft_team, ³​draft_round, ⁴​draft_pick
# }