View source: R/sptrc_team_active_payroll.R
| sptrc_team_active_payroll | R Documentation |
This function allows you to scrape a team's active payroll from Spotrac.
sptrc_team_active_payroll(team_abbr, year = most_recent_mlb_season())
team_abbr |
Team abbreviation |
year |
Year to load |
A data frame of contract data.
| col_name | types |
| year | numeric |
| team | character |
| player_name | character |
| roster_status | character |
| age | numeric |
| pos | numeric |
| status | numeric |
| waiver_options | numeric |
| base_salary | numeric |
| signing_bonus | numeric |
| payroll_salary | numeric |
| adj_salary | numeric |
| payroll_percent | numeric |
| lux_tax_salary | numeric |
| total_salary | numeric |
try(sptrc_team_active_payroll(team_abbr = "BAL", year = most_recent_mlb_season()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.