Return the current and projected standings, win streak, total wins, losses, and points scored for and against each team.
league_standings(leagueId = ffl_id(), leagueHistory = FALSE, ...)
Numeric league ID or ESPN fantasy page URL. Defaults to
getOption("fflr.leagueId")
. Function fails if no ID is found.
logical; Should the leagueHistory
version of the API
be called? If TRUE
, a list of results is returned, with one element for
each historical year of the league.
Additional queries passed to httr::GET()
. Arguments are
converted to a named list and passed to query
alongside view
.
A data frame of team standings.
Other league functions:
draft_recap()
,
league_members()
,
league_messages()
,
league_status()
,
league_teams()
,
tidy_schedule()
,
transaction_counter()
league_standings(leagueId = "42654852")
#> # A tibble: 4 × 17
#> seasonId scoringPeriodId teamId abbrev draftDayProjectedRank
#> <int> <int> <int> <fct> <int>
#> 1 2024 1 1 AUS 1
#> 2 2024 1 2 BOS 2
#> 3 2024 1 3 CHI 3
#> 4 2024 1 4 DEN 4
#> # ℹ 12 more variables: currentProjectedRank <int>, playoffSeed <int>,
#> # rankCalculatedFinal <int>, gamesBack <dbl>, losses <int>, percentage <dbl>,
#> # pointsAgainst <dbl>, pointsFor <dbl>, streakLength <int>, streakType <chr>,
#> # ties <int>, wins <int>