Return franchise-level data (including divisions, usernames, etc) - available data may vary slightly based on platform.

ff_franchises(conn)

# S3 method for flea_conn
ff_franchises(conn)

# S3 method for mfl_conn
ff_franchises(conn)

# S3 method for sleeper_conn
ff_franchises(conn)

Arguments

conn

a conn object created by ff_connect()

Value

A tidy dataframe of franchises, complete with IDs

Methods (by class)

  • flea_conn: Fleaflicker: returns franchise and division information.

  • mfl_conn: MFL: returns franchise and division information.

  • sleeper_conn: Sleeper: retrieves a list of franchise information, including user IDs and co-owner IDs.

Examples

# \donttest{ conn <- fleaflicker_connect(season = 2020, league_id = 206154) ff_franchises(conn)
#> # A tibble: 16 x 10 #> division_id division_name franchise_id franchise_name franchise_logo #> <int> <chr> <int> <chr> <chr> #> 1 606681 JDL North 1373501 Midgard Gallo… https://s3.am… #> 2 606681 JDL North 1373973 Red River Lan… https://s3.am… #> 3 606681 JDL North 1371776 Winter Hill B… https://s3.am… #> 4 606681 JDL North 1373991 Top City Terr… https://s3.am… #> 5 606682 JDL East 1374255 Mushroom City… https://s3.am… #> 6 606682 JDL East 1373475 Winterfell Di… https://s3.am… #> 7 606682 JDL East 1373480 Goldenrod Cit… https://s3.am… #> 8 606682 JDL East 1374252 Central City … https://s3.am… #> 9 606683 JDL South 1373970 Bamenda Herd https://s3.am… #> 10 606683 JDL South 1374271 Clutch City B… https://s3.am… #> 11 606683 JDL South 1373993 Boomtown Sly … https://s3.am… #> 12 606683 JDL South 1374315 Shanghai Comm… NA #> 13 606684 JDL West 1373393 Philadelphia … https://s3.am… #> 14 606684 JDL West 1373535 Winterthur An… https://s3.am… #> 15 606684 JDL West 1373988 Springfield I… https://s3.am… #> 16 606684 JDL West 1373883 Manitoba Marm… NA #> # … with 5 more variables: franchise_abbrev <chr>, user_id <int>, #> # user_name <chr>, user_avatar <chr>, user_lastlogin <dttm>
# } # \donttest{ ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020) ff_franchises(ssb_conn)
#> # A tibble: 14 x 7 #> franchise_id franchise_name logo icon abbrev bbidAvailableBa… #> <chr> <chr> <chr> <chr> <chr> <chr> #> 1 0001 Team Pikachu http… http… PIKA 159.00 #> 2 0002 Team Simon Be… http… http… SIMN 100.00 #> 3 0003 Team Captain … http… http… CFCN 50.00 #> 4 0004 Team Ice Clim… http… http… ICE 0.00 #> 5 0005 Team Dr. Mario http… http… DRM 84.00 #> 6 0006 Team King Ded… http… http… KDDD 87.00 #> 7 0007 Team Kirby http… http… KRBY 55.00 #> 8 0008 Team Fox http… http… FOX 0.00 #> 9 0009 Team Link http… http… LINK 81.00 #> 10 0010 Team Yoshi http… http… YSHI 0.00 #> 11 0011 Team Diddy Ko… http… http… DDY 179.00 #> 12 0012 Team Mewtwo http… http… MEW2 121.00 #> 13 0013 Team Ness http… http… NESS 0.00 #> 14 0014 Team Luigi http… http… LUIG 0.00 #> # … with 1 more variable: waiverSortOrder <chr>
# } # \donttest{ jml_conn <- ff_connect(platform = "sleeper", league_id = "522458773317046272", season = 2020) ff_franchises(jml_conn)
#> # A tibble: 12 x 5 #> franchise_id franchise_name user_name user_id co_owners #> <int> <chr> <chr> <chr> <list> #> 1 1 Fake News Jcurtis44 70729037081100288 <NULL> #> 2 2 KingGabe KingGabe 76686532077305856 <NULL> #> 3 3 solarpool solarpool 202892038360801280 <NULL> #> 4 4 The FANTom Menace weeknee 202882046337490944 <NULL> #> 5 5 Barbarians ABitterHomer 386383436639973376 <NULL> #> 6 6 sox05syd sox05syd 409797051455393792 <NULL> #> 7 7 Flipadelphia05 Flipadelphia05 386950378371207168 <NULL> #> 8 8 Hocka Flocka TwoFrames 386976568364306432 <NULL> #> 9 9 ZPMiller97 ZPMiller97 386571720443764736 <NULL> #> 10 10 JMLarkin JMLarkin 387070108625039360 <NULL> #> 11 11 Permian Panthers theoracleETS 198540145396289536 <list [1]> #> 12 12 jaydk jaydk 401485903224193024 <NULL>
# }