Learn R Programming

fflr (version 2.3.0)

league_standings: League standings

Description

Return the current and projected standings, win streak, total wins, losses, and points scored for and against each team.

Usage

league_standings(leagueId = ffl_id(), leagueHistory = FALSE, ...)

Value

A data frame of team standings.

Arguments

leagueId

Numeric league ID or ESPN fantasy page URL. Defaults to getOption("fflr.leagueId"). Function fails if no ID is found.

leagueHistory

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.

See Also

Other league functions: draft_recap(), league_members(), league_messages(), league_status(), league_teams(), tidy_schedule(), transaction_counter()

Examples

Run this code
league_standings(leagueId = "42654852")

Run the code above in your browser using DataLab