sptrc_team_active_payroll function

Scrape Team Active Payroll Breakdown from Spotrac

Scrape Team Active Payroll Breakdown from Spotrac

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

sptrc_team_active_payroll(team_abbr, year = most_recent_mlb_season())

Arguments

  • team_abbr: Team abbreviation
  • year: Year to load

Returns

A data frame of contract data.

col_nametypes
yearnumeric
teamcharacter
player_namecharacter
roster_statuscharacter
agenumeric
posnumeric
statusnumeric
waiver_optionsnumeric
base_salarynumeric
signing_bonusnumeric
payroll_salarynumeric
adj_salarynumeric
payroll_percentnumeric
lux_tax_salarynumeric
total_salarynumeric

Examples

try(sptrc_team_active_payroll(team_abbr = "BAL", year = most_recent_mlb_season()))