league_info: League information

Description Usage Arguments Value Examples

View source: R/league-settings.R

Description

Basic information on a ESPN fantasy football league, like the name, size, and season length.

Usage

1
league_info(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 list or tibble of season settings.

Examples

1
league_info(252353, old = TRUE)

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