ff_standings | R Documentation |
This function returns a tidy dataframe of season-long fantasy team stats, including H2H wins as well as points, potential points, and all-play.
ff_standings(conn, ...) ## S3 method for class 'espn_conn' ff_standings(conn, ...) ## S3 method for class 'flea_conn' ff_standings(conn, include_allplay = TRUE, include_potentialpoints = TRUE, ...) ## S3 method for class 'mfl_conn' ff_standings(conn, ...) ## S3 method for class 'sleeper_conn' ff_standings(conn, ...)
conn |
a conn object created by |
... |
arguments passed to other methods (currently none) |
include_allplay |
TRUE/FALSE - return all-play win pct calculation? defaults to TRUE |
include_potentialpoints |
TRUE/FALSE - return potential points calculation? defaults to TRUE. |
A tidy dataframe of standings data
ff_standings(espn_conn)
: ESPN: returns standings and points data.
ff_standings(flea_conn)
: Fleaflicker: returns H2H/points/all-play/best-ball data in a table.
ff_standings(mfl_conn)
: MFL: returns H2H/points/all-play/best-ball data in a table.
ff_standings(sleeper_conn)
: Sleeper: returns all standings and points data and manually calculates allplay results.
try({ # try only shown here because sometimes CRAN checks are weird espn_conn <- espn_connect(season = 2020, league_id = 899513) ff_standings(espn_conn) }) # end try try({ # try only shown here because sometimes CRAN checks are weird conn <- fleaflicker_connect(season = 2020, league_id = 206154) x <- ff_standings(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_standings(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_standings(jml_conn) }) # end try
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.