sptrc_league_payrolls function

Scrape League Payroll Breakdowns from Spotrac

Scrape League Payroll Breakdowns from Spotrac

This function allows you to scrape each team's payroll from Spotrac.

sptrc_league_payrolls(year = most_recent_mlb_season())

Arguments

  • year: Year to load

Returns

A data frame of contract data.

col_nametypes
yearcharacter
teamcharacter
team_abbrcharacter
ranknumeric
win_percentnumeric
rosternumeric
active_man_payrollnumeric
injured_reservenumeric
retainednumeric
buriednumeric
suspendednumeric
yearly_total_payrollnumeric

Examples

try(sptrc_league_payrolls(year = most_recent_mlb_season()))