The length of a fantasy season and the match periods for each week.

schedule_settings(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.

Value

A data frame of league schedule settings by season.

Examples

schedule_settings(leagueId = "42654852")
#> # A tibble: 0 × 13
#> # ℹ 13 variables: seasonId <int>, divisions <list>, matchupPeriodCount <int>,
#> #   matchupPeriodLength <int>, matchupPeriods <list>, periodTypeId <int>,
#> #   playoffMatchupPeriodLength <int>,
#> #   playoffMatchupPeriodLengthByRound <named list>, playoffReseed <lgl>,
#> #   playoffSeedingRule <chr>, playoffSeedingRuleBy <int>,
#> #   playoffTeamCount <int>, variablePlayoffMatchupPeriodLength <lgl>