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>       <int> <chr>     
#> 1 14384     Reed, Malik        DE     27.8 FA    NA           2019 FA        
#> 2 15093     Copeland, Marquise DT     27.1 FA    NA           2019 FA        
#> 3 16798     Kane, Sanoussi     S      22.6 BAL   R            2024 BAL       
#> 4 16295     Conner, Chamarri   S      23.9 KCC   NA           2023 KCC       
#> 5 11265     Gholston, William  DT     32.8 TBB   NA           2013 TBB       
#> # ℹ 17 more variables: draft_round <chr>, draft_pick <chr>,
#> #   stats_global_id <chr>, fleaflicker_id <chr>, stats_id <chr>, cbs_id <chr>,
#> #   sportsdata_id <chr>, rotowire_id <chr>, rotoworld_id <chr>, espn_id <chr>,
#> #   nfl_id <chr>, jersey <chr>, height <chr>, weight <chr>, college <chr>,
#> #   twitter_username <chr>, birthdate <date>
# }