draft_picks: Fantasy draft history

Description Usage Arguments Value Examples

View source: R/draft-picks.R

Description

Return a table of draft picks by season. For snake drafts, display the round and pick of each player; for auctions (salary cap), the nominating team and winning bid.

Usage

1
draft_picks(lid = getOption("lid"), old = FALSE, ...)

Arguments

lid

ESPN League ID, defaults to getOption("lid"). Use options(lid = <League ID>) to set your league ID; put that line in your .Rprofile file to set the option at start up.

old

If FALSE (default), return only the current season's data. If TRUE, return a list with all prior seasons.

...

Additional API query arguments. Use "week" and "year" as a shorthand for "ScoringPeriodId" and "seasonId" respectively.

Value

A tibble (or list) of draft picks.

Examples

1
draft_picks(lid = 252353)

fflr documentation built on Jan. 13, 2021, 5:18 p.m.