ff_starters | R Documentation |
This function returns a tidy dataframe with one row for every starter (and bench) for every week and their scoring, if available.
ff_starters(conn, ...) ## S3 method for class 'espn_conn' ff_starters(conn, weeks = 1:17, ...) ## S3 method for class 'flea_conn' ff_starters(conn, week = 1:17, ...) ## S3 method for class 'mfl_conn' ff_starters(conn, week = 1:17, season = NULL, ...) ## S3 method for class 'sleeper_conn' ff_starters(conn, week = 1:17, ...)
conn |
the list object created by |
... |
other arguments (currently unused) |
weeks |
which weeks to calculate, a number or numeric vector |
week |
a numeric or one of YTD (year-to-date) or AVG (average to date) |
season |
the season of interest - generally only the most recent 2-3 seasons are available |
A tidy dataframe with every player for every week, including a flag for whether they were started or not
ff_starters(espn_conn)
: ESPN: returns who was started as well as what they scored.
ff_starters(flea_conn)
: Fleaflicker: returns who was started as well as what they scored.
ff_starters(mfl_conn)
: MFL: returns the player fantasy scores for each week (not the actual stats)
ff_starters(sleeper_conn)
: Sleeper: returns only "who" was started, without any scoring/stats data. Only returns season specified in initial connection object.
try({ # try only shown here because sometimes CRAN checks are weird conn <- espn_connect(season = 2020, league_id = 1178049) ff_starters(conn, weeks = 1:3) }) # end try try({ # try only shown here because sometimes CRAN checks are weird conn <- fleaflicker_connect(season = 2020, league_id = 206154) ff_starters(conn) }) # end try try({ # try only shown here because sometimes CRAN checks are weird dlf_conn <- mfl_connect(2020, league_id = 37920) ff_starters(conn = dlf_conn) }) # end try try({ # try only shown here because sometimes CRAN checks are weird jml_conn <- sleeper_connect(league_id = "522458773317046272", season = 2020) ff_starters(jml_conn, week = 3) }) # end try
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.