tidy_schedule: Fantasy match schedule

View source: R/matchup.R

tidy_scheduleR Documentation

Fantasy match schedule

Description

The opponents each team faces every week in a fantasy regular season. Returned in a tidy format where each row is a single team with an indication of home-away status. There are two rows per matchup, one for each team.

Usage

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

tidy_matchups(...)

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.

Value

A data frame(s) of match opponents.

See Also

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

Examples

tidy_schedule(leagueId = "42654852")

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