View source: R/get_weekly_matchups.R
get_weekly_matchups | R Documentation |
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.
get_weekly_matchups(league_id, type = "all")
league_id |
League ID generated by Sleeper (numeric or character) |
type |
Type of data returned ("all", "team", "player") (string). |
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.
Nick Bultman, njbultman74@gmail.com, April 2024
## Not run: get_weekly_matchups(688281863499907072)
## Not run: get_weekly_matchups(688281863499907072, type = "player")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.