Learn R Programming

sleeperapi (version 1.0.4)

get_matchups: Gather Matchup Data in a League for a Week

Description

Given a league ID and week number, grab the matchup data, including player points, total points, starting rosters, and more.

Usage

get_matchups(league_id, week)

Value

Returns a data frame containing information about the matchups.

Arguments

league_id

League ID generated by Sleeper (numeric or character)

week

Matchup week (numeric)

Author

Nick Bultman, njbultman74@gmail.com, September 2021

Examples

Run this code
if (FALSE) get_matchups(688281863499907072, 2)
if (FALSE) get_matchups("688281863499907072", 1)

Run the code above in your browser using DataLab