match_schedule: Fantasy match schedule

Description Usage Arguments Value Examples

View source: R/match-schedule.R

Description

The opponents each team faces every week in a fantasy regular season.

Usage

1
match_schedule(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 match opponents.

Examples

1
match_schedule(lid = 252353)

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