| sptrc_league_payrolls {baseballr} | R Documentation |
Scrape League Payroll Breakdowns from Spotrac
Description
This function allows you to scrape each team's payroll from Spotrac.
Usage
sptrc_league_payrolls(year = most_recent_mlb_season())
Arguments
year |
Year to load |
Value
A data frame of contract data.
| col_name | types |
| year | character |
| team | character |
| team_abbr | character |
| rank | numeric |
| win_percent | numeric |
| roster | numeric |
| active_man_payroll | numeric |
| injured_reserve | numeric |
| retained | numeric |
| buried | numeric |
| suspended | numeric |
| yearly_total_payroll | numeric |
Examples
try(sptrc_league_payrolls(year = most_recent_mlb_season()))
[Package baseballr version 1.6.0 Index]