get_weekly_matchups {sleeperapi}R Documentation

Gather All Weekly Matchup Data Available for League

Description

Given a league ID and the type of data (all, team, or player data), grab the matchup data for each week that matchup data is available.

Usage

get_weekly_matchups(league_id, type = "all")

Arguments

league_id

League ID generated by Sleeper (numeric or character)

type

Type of data returned ("all", "team", "player") (string).

Value

If type is "all", will return a list containing data frames for both team and player data. Otherwise, will return team or player data depending on what is specified in the type argument. Note that with the player data, the aggregated player points could differ from the total team points due to the custom (manual) points that can be present.

Author(s)

Nick Bultman, njbultman74@gmail.com, April 2024

Examples

## Not run: get_weekly_matchups(688281863499907072)
## Not run: get_weekly_matchups(688281863499907072, type = "player")


[Package sleeperapi version 1.1.1 Index]