Learn R Programming

sleeperapi (version 1.0.4)

get_league: Gather League Data

Description

Given a league ID, grab the data for that league. Includes roster positions, season type, if it is in season, and more.

Usage

get_league(league_id)

Value

Returns a list containing information about the league.

Arguments

league_id

League ID generated by Sleeper (numeric or character)

Author

Nick Bultman, njbultman74@gmail.com, September 2021

Examples

Run this code
if (FALSE) get_league(688281863499907072)

Run the code above in your browser using DataLab