Learn R Programming

sleeperapi (version 1.0.4)

get_transactions: Gather League Transactions for Specific Round

Description

Given a league ID and round, grab the transaction data concerning that particular league. This includes adds or drops, whether it was a free agent or a waiver, notes, and more.

Usage

get_transactions(league_id, round)

Value

Returns a data frame containing information about the round of transactions for that league.

Arguments

league_id

League ID generated by Sleeper (numeric or character)

round

round of transactions to gather (can also be thought of as week depending on when your league processes transactions) (numeric)

Author

Nick Bultman, njbultman74@gmail.com, September 2021

Examples

Run this code
if (FALSE) get_transactions(688281863499907072, 2)

Run the code above in your browser using DataLab