This function returns a tidy dataframe of team rosters

ff_rosters(conn, ...)

# S3 method for flea_conn
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 tidy dataframe of rosters, joined to basic player information and basic franchise information

Methods (by class)

  • 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{ joe_conn <- ff_connect(platform = "fleaflicker", league_id = 312861, season = 2020) ff_rosters(joe_conn)
#> # A tibble: 357 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 9390 Mike Glennon QB JAC e1235f1e-26ce… #> 3 1578553 Running Bear 13325 Austin Ekel… RB LAC e5b8c439-a48a… #> 4 1578553 Running Bear 9338 Robert Woods WR LAR 618bedee-9259… #> 5 1578553 Running Bear 12926 Chris Godwin WR TB baa61bb5-f8d0… #> 6 1578553 Running Bear 8429 Marvin Jones WR DET 1a2fbc23-e6db… #> 7 1578553 Running Bear 15531 Brandon Aiy… WR SF c90471cc-fa60… #> 8 1578553 Running Bear 13209 Tim Patrick WR DEN 2a443351-5e63… #> 9 1578553 Running Bear 13489 Robert Tony… TE GB 7c9c7800-69d0… #> 10 1578553 Running Bear 12974 Jonnu Smith TE TEN e4f25a37-74de… #> # … with 347 more rows
# } # \donttest{ ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020) ff_rosters(ssb_conn)
#> # A tibble: 439 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.4 #> 2 0001 Team Pikachu 11680 Landry, Ja… WR CLE 28.1 #> 3 0001 Team Pikachu 13645 Smith, Tre… WR NOS 25 #> 4 0001 Team Pikachu 12110 Brate, Cam… TE TBB 29.5 #> 5 0001 Team Pikachu 13168 Reynolds, … WR LAR 25.9 #> 6 0001 Team Pikachu 13793 Valdes-Sca… WR GBP 26.3 #> 7 0001 Team Pikachu 13377 Patrick, T… WR DEN 27.1 #> 8 0001 Team Pikachu 13254 Shaheen, A… TE MIA 27 #> 9 0001 Team Pikachu 14803 Edwards-He… RB KCC 21.8 #> 10 0001 Team Pikachu 14838 Shenault, … WR JAC 22.3 #> # … with 429 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.2 #> 2 1 Fake News 1339 Zach Ertz TE PHI 30.2 #> 3 1 Fake News 1426 DeAndre Hopkins WR ARI 28.6 #> 4 1 Fake News 1825 Jarvis Landry WR CLE 28.1 #> 5 1 Fake News 2025 Albert Wilson WR MIA 28.5 #> 6 1 Fake News 2197 Brandin Cooks WR HOU 27.3 #> 7 1 Fake News 2319 DeVante Parker WR MIA 28 #> 8 1 Fake News 232 Frank Gore RB NYJ 37.7 #> 9 1 Fake News 2822 Adam Humphries WR TEN 27.6 #> 10 1 Fake News 289 Drew Brees QB NO 42 #> # … with 340 more rows
# }