This function returns a tidy dataframe of team rosters

ff_rosters(conn, ...)

# S3 method for espn_conn
ff_rosters(conn, week = NULL, ...)

# S3 method for flea_conn
ff_rosters(conn, ...)

# S3 method for mfl_conn
ff_rosters(conn, custom_players = deprecated(), week = NULL, ...)

# S3 method for sleeper_conn
ff_rosters(conn, ...)

Arguments

conn

a conn object created by ff_connect()

...

arguments passed to other methods (currently none)

week

a numeric that specifies which week to return

custom_players

"[Deprecated]" - now returns custom players by default

Value

A tidy dataframe of rosters, joined to basic player information and basic franchise information

Methods (by class)

  • espn_conn: ESPN: Returns all roster data.

  • flea_conn: Fleaflicker: Returns roster data (minus age as of right now)

  • mfl_conn: MFL: returns roster data

  • sleeper_conn: Sleeper: Returns all roster data.

Examples

# \donttest{ try({ # try only shown here because sometimes CRAN checks are weird conn <- espn_connect(season = 2020, league_id = 899513) ff_league(conn) }) # end try
#> # A tibble: 1 × 16 #> league_id league_name season league_type franchise_count qb_type idp #> <chr> <chr> <int> <chr> <int> <chr> <lgl> #> 1 899513 Sucio Boys 2020 keeper 10 2QB/SF FALSE #> # … with 9 more variables: scoring_flags <chr>, best_ball <lgl>, #> # salary_cap <lgl>, player_copies <dbl>, years_active <chr>, qb_count <chr>, #> # roster_size <int>, league_depth <dbl>, keeper_count <int>
# } # \donttest{ try({ # try only shown here because sometimes CRAN checks are weird joe_conn <- ff_connect(platform = "fleaflicker", league_id = 312861, season = 2020) ff_rosters(joe_conn) }) # end try
#> # A tibble: 352 × 7 #> franchise_id franchise_name player_id player_name pos team sportradar_id #> <int> <chr> <int> <chr> <chr> <chr> <chr> #> 1 1578553 Running Bear 12032 Carson Wentz QB IND e9a5c16b-447… #> 2 1578553 Running Bear 12159 Dak Prescott QB DAL 86197778-8d4… #> 3 1578553 Running Bear 11187 David Johnson RB HOU 2c8670ae-0c2… #> 4 1578553 Running Bear 12951 James Conner RB ARI 28a084c0-14d… #> 5 1578553 Running Bear 14736 Devin Singletary RB BUF a961b0d4-5d7… #> 6 1578553 Running Bear 16250 Ja'Marr Chase WR CIN fa99e984-d63… #> 7 1578553 Running Bear 12926 Chris Godwin WR TB baa61bb5-f8d… #> 8 1578553 Running Bear 9338 Robert Woods WR LAR 618bedee-925… #> 9 1578553 Running Bear 9235 Josh Gordon WR KC b228c353-bb1… #> 10 1578553 Running Bear 13415 Anthony Firkser TE TEN b0719e3d-199… #> # … with 342 more rows
# } # \donttest{ try({ # try only shown here because sometimes CRAN checks are weird ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020) ff_rosters(ssb_conn) }) # end try
#> # A tibble: 417 × 11 #> franchise_id franchise_name player_id player_name pos team age #> <chr> <chr> <chr> <chr> <chr> <chr> <dbl> #> 1 0001 Team Pikachu 13189 Engram, Evan TE NYG 27.1 #> 2 0001 Team Pikachu 11680 Landry, Jarvis WR CLE 28.9 #> 3 0001 Team Pikachu 13645 Smith, Tre'Quan WR NOS 25.8 #> 4 0001 Team Pikachu 12110 Brate, Cameron TE TBB 30.3 #> 5 0001 Team Pikachu 13168 Reynolds, Josh WR LAR 26.7 #> 6 0001 Team Pikachu 13793 Valdes-Scantling, Ma… WR GBP 27 #> 7 0001 Team Pikachu 13377 Patrick, Tim WR DEN 27.9 #> 8 0001 Team Pikachu 13254 Shaheen, Adam TE MIA 27.8 #> 9 0001 Team Pikachu 14803 Edwards-Helaire, Cly… RB KCC 22.5 #> 10 0001 Team Pikachu 14838 Shenault, Laviska WR JAC 23 #> # … with 407 more rows, and 4 more variables: roster_status <chr>, #> # drafted <chr>, draft_year <chr>, draft_round <chr>
# } # \donttest{ try({ # try only shown here because sometimes CRAN checks are weird jml_conn <- ff_connect(platform = "sleeper", league_id = "522458773317046272", season = 2020) ff_rosters(jml_conn) }) # end try
#> # A tibble: 350 × 7 #> franchise_id franchise_name player_id player_name pos team age #> <chr> <chr> <chr> <chr> <chr> <chr> <dbl> #> 1 1 Fake News 1110 T.Y. Hilton WR IND 31.9 #> 2 1 Fake News 1339 Zach Ertz TE ARI 30.9 #> 3 1 Fake News 1426 DeAndre Hopkins WR ARI 29.4 #> 4 1 Fake News 1825 Jarvis Landry WR CLE 28.9 #> 5 1 Fake News 2025 Albert Wilson WR MIA 29.3 #> 6 1 Fake News 2197 Brandin Cooks WR HOU 28.1 #> 7 1 Fake News 2319 DeVante Parker WR MIA 28.7 #> 8 1 Fake News 232 Frank Gore RB NA 38.4 #> 9 1 Fake News 2822 Adam Humphries WR WAS 28.3 #> 10 1 Fake News 289 Drew Brees QB NA 42.8 #> # … with 340 more rows
# }