ff_league {ffscrapr} | R Documentation |
Get League Summary
Description
This function returns a tidy dataframe of common league settings, including details like "1QB" or "2QB/SF", scoring, best ball, team count, IDP etc. This is potentially useful in summarising the features of multiple leagues.
Usage
ff_league(conn)
## S3 method for class 'espn_conn'
ff_league(conn)
## S3 method for class 'flea_conn'
ff_league(conn)
## S3 method for class 'mfl_conn'
ff_league(conn)
## S3 method for class 'sleeper_conn'
ff_league(conn)
Arguments
conn |
the connection object created by |
Value
A one-row summary of each league's main features.
Methods (by class)
-
ff_league(espn_conn)
: ESPN: returns a summary of league features. -
ff_league(flea_conn)
: Flea: returns a summary of league features. -
ff_league(mfl_conn)
: MFL: returns a summary of league features. -
ff_league(sleeper_conn)
: Sleeper: returns a summary of league features.
Examples
try({ # try only shown here because sometimes CRAN checks are weird
conn <- espn_connect(season = 2020, league_id = 899513)
ff_league(conn)
}) # end try
try({ # try only shown here because sometimes CRAN checks are weird
conn <- fleaflicker_connect(2020, 206154)
ff_league(conn)
}) # end try
try({ # try only shown here because sometimes CRAN checks are weird
ssb_conn <- ff_connect(platform = "mfl", league_id = 22627, season = 2021)
ff_league(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_league(jml_conn)
}) # end try
[Package ffscrapr version 1.4.8 Index]