ff_franchises {ffscrapr} | R Documentation |
Get League Franchises
Description
Return franchise-level data (including divisions, usernames, etc) - available data may vary slightly based on platform.
Usage
ff_franchises(conn)
## S3 method for class 'espn_conn'
ff_franchises(conn)
## S3 method for class 'flea_conn'
ff_franchises(conn)
## S3 method for class 'mfl_conn'
ff_franchises(conn)
## S3 method for class 'sleeper_conn'
ff_franchises(conn)
Arguments
conn |
a conn object created by |
Value
A tidy dataframe of franchises, complete with IDs
Methods (by class)
-
ff_franchises(espn_conn)
: ESPN: returns franchise and division information. -
ff_franchises(flea_conn)
: Fleaflicker: returns franchise and division information. -
ff_franchises(mfl_conn)
: MFL: returns franchise and division information. -
ff_franchises(sleeper_conn)
: Sleeper: retrieves a list of franchise information, including user IDs and co-owner IDs.
Examples
try({ # try only shown here because sometimes CRAN checks are weird
conn <- espn_connect(season = 2020, league_id = 1178049)
ff_franchises(conn)
}) # end try
try({ # try only shown here because sometimes CRAN checks are weird
conn <- fleaflicker_connect(season = 2020, league_id = 206154)
ff_franchises(conn)
}) # end try
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
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
[Package ffscrapr version 1.4.8 Index]