Learn R Programming

sleeperapi (version 1.0.4)

get_user_drafts: Gather User Draft Information

Description

Given a user ID, sport abbreviation, and season number, gather draft information for that selection.

Usage

get_user_drafts(user_id, sport, season)

Value

Returns a data frame containing information about the draft(s).

Arguments

user_id

User ID generated by Sleeper (numeric)

sport

Sport that you would like to query ("nfl" only supported currently) (character)

season

Season that you would like to select (numeric)

Author

Nick Bultman, njbultman74@gmail.com, December 2021

Examples

Run this code
if (FALSE) get_user_drafts(688556535013502976, "nfl", 2021)

Run the code above in your browser using DataLab