Uses the roster settings for each league to find the best possible combinations of players to score the most fantasy points.
Numeric league ID or ESPN fantasy page URL. Defaults to
getOption("fflr.leagueId")
. Function fails if no ID is found.
One of "projectedScore" or "actualScore" (default).
Integer week of NFL season. By default, NULL
will
use the current week (see ffl_week()
). Scoring periods are always one
week in length, whereas matchups might be longer.
Additional queries passed to httr::GET()
. Arguments are
converted to a named list and passed to query
alongside view
.
A dataframe (or list) with optimal rosters.
If scoringPeriodId
is the current week (the default), then actual scoring
might be incomplete (see projectedScore
argument).
Other roster functions:
roster_score()
,
start_roster()
,
team_roster()
best_roster(leagueId = "42654852", scoringPeriodId = 1)
#> League has not yet drafted this season
#> data frame with 0 columns and 0 rows