View source: R/get_user_leagues.R
get_user_leagues | R Documentation |
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.
get_user_leagues(
user_id,
sport = "nfl",
season = substr(Sys.Date(), start = 1, stop = 4)
)
user_id |
User ID generated by Sleeper (numeric or character) |
sport |
Sport for league information (character) |
season |
Season for league information (numeric or character) |
Returns a data frame containing information about the user.
Nick Bultman, njbultman74@gmail.com, September 2021
## Not run: get_user_leagues(688556535013502976)
## Not run: get_user_leagues("688556535013502976", sport = "nfl", season = "2021")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.