get_user_leagues {sleeperapi}R Documentation

Gather Leagues for User

Description

Given a user ID and optional sport and season, grab the league data concerning that particular user. This includes total rosters, scoring settings, roster positions, and more.

Usage

get_user_leagues(
  user_id,
  sport = "nfl",
  season = substr(Sys.Date(), start = 1, stop = 4)
)

Arguments

user_id

User ID generated by Sleeper (numeric or character)

sport

Sport for league information (character)

season

Season for league information (numeric or character)

Value

Returns a data frame containing information about the user.

Author(s)

Nick Bultman, njbultman74@gmail.com, September 2021

Examples

## Not run: get_user_leagues(688556535013502976)
## Not run: get_user_leagues("688556535013502976", sport = "nfl", season = "2021")


[Package sleeperapi version 1.1.1 Index]