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

ff_franchises(conn)

# S3 method for espn_conn
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)

  • espn_conn: ESPN: returns franchise and division information.

  • 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{ try({ # try only shown here because sometimes CRAN checks are weird conn <- espn_connect(season = 2020, league_id = 1178049) ff_franchises(conn) }) # end try
#> # A tibble: 14 × 8 #> franchise_id franchise_name franchise_abbrev logo waiver_order user_id #> <int> <chr> <chr> <chr> <int> <chr> #> 1 1 Rushin' Collus… RC https://… 3 {6CE354… #> 2 2 Gurleys Gone W… GGW https://… 6 {74ADB5… #> 3 3 The Name's Mage Mage http://i… 12 {141C9C… #> 4 4 dlp:: thoriyan thor https://… 5 {1E6BB1… #> 5 5 No Ultrasmurfs… ALH http://m… 9 {E88F51… #> 6 6 Dak Street Boys DSB https://… 11 {441A52… #> 7 7 Kung-Fu Kenny KDOT https://… 10 {C60506… #> 8 8 Sticky Simians LEL https://… 4 {599F7D… #> 9 9 The Wright Stu… TWS NA 8 {F831BD… #> 10 10 Too Many Cooks COOK https://… 7 {C9AE3C… #> 11 11 Team Typhon TYPH https://… 14 {070C02… #> 12 12 Homicidal Hicks HH http://3… 1 {CBF269… #> 13 13 Baby You Can D… POKE http://v… 13 {A5DC83… #> 14 14 Boralus Booty BB https://… 2 {1778DE… #> # … with 2 more variables: user_name <chr>, user_nickname <chr>
# } # \donttest{ try({ # try only shown here because sometimes CRAN checks are weird conn <- fleaflicker_connect(season = 2020, league_id = 206154) ff_franchises(conn) }) # end try
#> # A tibble: 16 × 10 #> division_id division_name franchise_id franchise_name franchise_logo #> <int> <chr> <int> <chr> <chr> #> 1 606681 JDL North 1371776 Winter Hill Blac… https://s3.amazonaw… #> 2 606681 JDL North 1373973 Red River Land T… https://s3.amazonaw… #> 3 606681 JDL North 1373501 Midgard Gallows https://s3.amazonaw… #> 4 606681 JDL North 1373991 Top City Terrors https://s3.amazonaw… #> 5 606682 JDL East 1374255 Mushroom City Ka… https://s3.amazonaw… #> 6 606682 JDL East 1373475 Winterfell Dire … https://s3.amazonaw… #> 7 606682 JDL East 1373480 Goldenrod City N… https://s3.amazonaw… #> 8 606682 JDL East 1374252 Central City Cru… https://s3.amazonaw… #> 9 606683 JDL South 1373970 Bamenda Herd https://s3.amazonaw… #> 10 606683 JDL South 1374271 Clutch City Ball… https://s3.amazonaw… #> 11 606683 JDL South 1374315 Shanghai Communi… NA #> 12 606683 JDL South 1373993 Boomtown Sly Fox… https://s3.amazonaw… #> 13 606684 JDL West 1373393 Philadelphia Fire https://s3.amazonaw… #> 14 606684 JDL West 1373535 Winterthur Angry… https://s3.amazonaw… #> 15 606684 JDL West 1373883 Manitoba Marmots NA #> 16 606684 JDL West 1373988 Springfield Isot… https://s3.amazonaw… #> # … with 5 more variables: franchise_abbrev <chr>, user_id <int>, #> # user_name <chr>, user_avatar <chr>, user_lastlogin <dttm>
# } # \donttest{ try({ # try only shown here because sometimes CRAN checks are weird ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020) ff_franchises(ssb_conn) }) # end try
#> # A tibble: 14 × 7 #> franchise_id franchise_name logo icon abbrev bbidAvailableBa… #> <chr> <chr> <chr> <chr> <chr> <chr> #> 1 0001 Team Pikachu https://i.i… https://i.… PIKA 159.00 #> 2 0002 Team Simon Bel… https://i.i… https://i.… SIMN 99.00 #> 3 0003 Team Donkey Ko… https://i.i… https://i.… DK 50.00 #> 4 0004 Team Ice Climb… https://i.i… https://i.… ICE 0.00 #> 5 0005 Team Dr. Mario https://i.i… https://i.… DRM 84.00 #> 6 0006 Team King Dede… https://i.i… https://i.… KDDD 87.00 #> 7 0007 Team Kirby https://i.i… https://i.… KRBY 40.00 #> 8 0008 Team Bowser https://i.i… https://i.… BWSR 0.00 #> 9 0009 Team Link https://i.i… https://i.… LINK 81.00 #> 10 0010 Team Yoshi https://i.i… https://i.… YSHI 0.00 #> 11 0011 Team Diddy Kong https://i.i… https://i.… DDY 173.00 #> 12 0012 Team Mewtwo https://i.i… https://i.… MEW2 0.00 #> 13 0013 Team Ness https://i.i… https://i.… NESS 0.00 #> 14 0014 Team Luigi https://i.i… https://i.… LUIG 0.00 #> # … with 1 more variable: waiverSortOrder <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_franchises(jml_conn) }) # end try
#> # A tibble: 12 × 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>
# }