tidy_scores {fflr} | R Documentation |
Fantasy matchup scores
Description
The score of each team in a matchup or scoring period and the match outcome.
Usage
tidy_scores(leagueId = ffl_id(), leagueHistory = FALSE, useMatchup = TRUE, ...)
Arguments
leagueId |
Numeric league ID or ESPN fantasy page URL. Defaults to
|
leagueHistory |
logical; Should the |
useMatchup |
logical; Whether scoring should be summarized by
|
... |
Additional queries passed to |
Details
expectedWins
are calculated by comparing a team score against all other
scores for a given matchup period. This statistic expresses how a team would
fair if the schedule was random The highest scoring team is thus expected to
earn 1 win and the lowest scoring team would expect to win 0 matchups.
Value
A tidy data frame of scores by team and matchup/scoring period.
See Also
Other scoring functions:
live_scoring()
Examples
tidy_scores(leagueId = "42654852", useMatchup = FALSE)