live_scoring {fflr}R Documentation

Live matchup scoreboard

Description

The current and projected score for each ongoing match.

Usage

live_scoring(leagueId = ffl_id(), yetToPlay = FALSE, bonusWin = FALSE, ...)

Arguments

leagueId

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

yetToPlay

If TRUE, pro_schedule() and the "mRoster" view are called to determine how many starting players have yet to start playing.

bonusWin

If TRUE, a logical column bonusWin will be added containing TRUE values for teams who are projected to score in the top half of points this week. This is a way to project the "bonus win" optional setting added in 2022.

...

Additional queries passed to httr::GET(). Arguments are converted to a named list and passed to query alongside view.

Value

A data frame of scores by period.

See Also

Other scoring functions: tidy_scores()

Examples

live_scoring(leagueId = "42654852", yetToPlay = FALSE)

[Package fflr version 2.3.0 Index]