This function returns a tibble of team rosters

ff_rosters(conn, ...)

# S3 method for mfl_conn
ff_rosters(conn, custom_players = FALSE, ...)

# 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

TRUE or FALSE - include custom players? defaults to FALSE

Value

A tibble of rosters, joined to basic player information and basic franchise information

Examples

ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020) ff_rosters(ssb_conn)
#> # A tibble: 421 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, Ev… TE NYG 26.1 #> 2 0001 Team Pikachu 11680 Landry, Ja… WR CLE 27.9 #> 3 0001 Team Pikachu 13290 Cohen, Tar… RB CHI 25.2 #> 4 0001 Team Pikachu 13158 Westbrook,… WR JAC 26.9 #> 5 0001 Team Pikachu 10273 Newton, Cam QB NEP 31.4 #> 6 0001 Team Pikachu 14085 Pollard, T… RB DAL 23.5 #> 7 0001 Team Pikachu 13139 Williams, … RB GBP 25.5 #> 8 0001 Team Pikachu 9918 Sanders, E… WR NOS 33.6 #> 9 0001 Team Pikachu 13645 Smith, Tre… WR NOS 24.8 #> 10 0001 Team Pikachu 12110 Brate, Cam… TE TBB 29.3 #> # … with 411 more rows, and 4 more variables: roster_status <chr>, #> # drafted <chr>, draft_year <chr>, draft_round <chr>
jml_conn <- ff_connect(platform = "sleeper", league_id = 522458773317046272, season = 2020) ff_rosters(jml_conn)
#> # A tibble: 351 x 7 #> franchise_id franchise_name player_id player_name pos team age #> <chr> <chr> <chr> <chr> <chr> <chr> <dbl> #> 1 1 Paper Champs 2025 Albert Wilson WR MIA 28.3 #> 2 1 Paper Champs 4089 Gerald Everett TE LAR 26.3 #> 3 1 Paper Champs 6068 Devine Ozigbo RB JAX 24 #> 4 1 Paper Champs 1339 Zach Ertz TE PHI 29.9 #> 5 1 Paper Champs 5068 Kerryon Johnson RB DET 23.3 #> 6 1 Paper Champs 5965 Miles Boykin WR BAL 24.8 #> 7 1 Paper Champs 289 Drew Brees QB NO 41.7 #> 8 1 Paper Champs 4199 Aaron Jones RB GB 25.9 #> 9 1 Paper Champs 4037 Chris Godwin WR TB 24.6 #> 10 1 Paper Champs 421 Matthew Stafford QB DET 32.7 #> # … with 341 more rows