The scoring system used and points awarded for various actions.

scoring_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 scoring settings by season.

Examples

scoring_settings(leagueId = "42654852")
#> # A tibble: 1 × 7
#>   seasonId scoringType playerRankType homeTeamBonus playoffHomeTeamBonus
#>      <int> <chr>       <chr>                  <int>                <int>
#> 1     2024 H2H_POINTS  PPR                        1                    0
#> # ℹ 2 more variables: playoffMatchupTieRule <chr>, scoringItems <list>