best_roster {fflr} | R Documentation |
Sort the optimal fantasy roster
Description
Uses the roster settings for each league to find the best possible combinations of players to score the most fantasy points.
Usage
best_roster(
leagueId = ffl_id(),
useScore = c("actualScore", "projectedScore"),
scoringPeriodId = NULL,
...
)
Arguments
leagueId |
Numeric league ID or ESPN fantasy page URL. Defaults to
|
useScore |
One of "projectedScore" or "actualScore" (default). |
scoringPeriodId |
Integer week of NFL season. By default, |
... |
Additional queries passed to |
Details
If scoringPeriodId
is the current week (the default), then actual scoring
might be incomplete (see projectedScore
argument).
Value
A dataframe (or list) with optimal rosters.
See Also
Other roster functions:
roster_score()
,
start_roster()
,
team_roster()
Examples
best_roster(leagueId = "42654852", scoringPeriodId = 1)