View source: R/sptrc_league_payrolls.R
| sptrc_league_payrolls | R Documentation |
This function allows you to scrape each team's payroll from Spotrac.
sptrc_league_payrolls(year = most_recent_mlb_season())
year |
Year to load |
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 |
try(sptrc_league_payrolls(year = most_recent_mlb_season()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.