league_teams: Fantasy league teams

View source: R/teams.R

league_teamsR Documentation

Fantasy league teams

Description

The teams in a league and their owners.

Usage

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

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.

Details

If any team has multiple owners, the memberId column will be a list of unique owner member ID strings per team (see league_members()).

Value

A dataframe (or list) with league teams.

See Also

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

Examples

league_teams(leagueId = "42654852")

fflr documentation built on Sept. 14, 2023, 9:10 a.m.