draft_recap: Fantasy draft history

View source: R/draft.R

draft_recapR Documentation

Fantasy draft history

Description

Return the sequential result of a fantasy draft pick, whether snake or salary cap format.

Usage

draft_recap(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(s) of draft picks.

See Also

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

Examples

draft_recap(leagueId = "42654852")

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