This function returns a tidy dataframe of team rosters

ff_rosters(conn, ...)

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

# 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)

custom_players

`r lifecycle::badge("deprecated")` - now returns custom players by default

week

a numeric that specifies which week to return

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{ conn <- espn_connect(season = 2020, league_id = 899513) ff_league(conn)
#> # A tibble: 1 x 15 #> league_id league_name league_type franchise_count qb_type idp scoring_flags #> <chr> <chr> <chr> <int> <chr> <lgl> <chr> #> 1 899513 Sucio Boys keeper 10 2QB/SF FALSE 0.5_ppr #> # … with 8 more variables: 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{ joe_conn <- ff_connect(platform = "fleaflicker", league_id = 312861, season = 2020) ff_rosters(joe_conn)
#> # A tibble: 237 x 7 #> franchise_id franchise_name player_id player_name pos team sportradar_id #> <int> <chr> <int> <chr> <chr> <chr> <chr> #> 1 1578553 Running Bear 7378 Cam Newton QB NE 214e55e4-a089… #> 2 1578553 Running Bear 13325 Austin Ekel… RB LAC e5b8c439-a48a… #> 3 1578553 Running Bear 12926 Chris Godwin WR TB baa61bb5-f8d0… #> 4 1578553 Running Bear 8429 Marvin Jones WR JAC 1a2fbc23-e6db… #> 5 1578553 Running Bear 13209 Tim Patrick WR DEN 2a443351-5e63… #> 6 1578553 Running Bear 15531 Brandon Aiy… WR SF c90471cc-fa60… #> 7 1578553 Running Bear 13489 Robert Tony… TE GB 7c9c7800-69d0… #> 8 1578553 Running Bear 7592 Tyrod Taylor QB HOU 7f3ef024-eb34… #> 9 1578553 Running Bear 12032 Carson Wentz QB IND e9a5c16b-4472… #> 10 1578553 Running Bear 14770 Jarrett Sti… QB NE 582fe465-135a… #> # … with 227 more rows
# } # \donttest{ ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020) ff_rosters(ssb_conn)
#> # A tibble: 442 x 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 26.6 #> 2 0001 Team Pikachu 11680 Landry, Jarvis WR CLE 28.4 #> 3 0001 Team Pikachu 13645 Smith, Tre'Quan WR NOS 25.3 #> 4 0001 Team Pikachu 12110 Brate, Cameron TE TBB 29.8 #> 5 0001 Team Pikachu 13168 Reynolds, Josh WR LAR 26.2 #> 6 0001 Team Pikachu 13793 Valdes-Scantling, Ma… WR GBP 26.5 #> 7 0001 Team Pikachu 13377 Patrick, Tim WR DEN 27.4 #> 8 0001 Team Pikachu 13254 Shaheen, Adam TE MIA 27.3 #> 9 0001 Team Pikachu 14803 Edwards-Helaire, Cly… RB KCC 22 #> 10 0001 Team Pikachu 14838 Shenault, Laviska WR JAC 22.5 #> # … with 432 more rows, and 4 more variables: roster_status <chr>, #> # drafted <chr>, draft_year <chr>, draft_round <chr>
# } # \donttest{ jml_conn <- ff_connect(platform = "sleeper", league_id = "522458773317046272", season = 2020) ff_rosters(jml_conn)
#> # A tibble: 350 x 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.4 #> 2 1 Fake News 1339 Zach Ertz TE PHI 30.4 #> 3 1 Fake News 1426 DeAndre Hopkins WR ARI 28.9 #> 4 1 Fake News 1825 Jarvis Landry WR CLE 28.4 #> 5 1 Fake News 2025 Albert Wilson WR MIA 28.8 #> 6 1 Fake News 2197 Brandin Cooks WR HOU 27.5 #> 7 1 Fake News 2319 DeVante Parker WR MIA 28.2 #> 8 1 Fake News 232 Frank Gore RB NYJ 37.9 #> 9 1 Fake News 2822 Adam Humphries WR WAS 27.8 #> 10 1 Fake News 289 Drew Brees QB NO 42.2 #> # … with 340 more rows
# }